WEBVTT

00:00.000 --> 00:03.860
Hi, everyone, and welcome to the afternoon session at AI Village.

00:04.020 --> 00:12.820
I am pleased to introduce Kenya Yoshimura and Takahiro Yoshimura on Clairvoyant's concurrent lip reading for the smart masses.

00:12.820 --> 00:13.660
Thank you, everybody.

00:13.660 --> 00:15.860
Please give them a huge round of applause.

00:20.220 --> 00:21.100
Thank you.

00:21.420 --> 00:22.800
Hi, everyone.

00:22.960 --> 00:24.460
Nice to meet you.

00:24.900 --> 00:30.760
Today, we are talking about our research on automated lip reading.

00:30.840 --> 00:36.220
If you have any questions, please mention us in Twitter or something at any time.

00:36.220 --> 00:37.240
Thank you.

00:39.540 --> 00:41.340
My name is Takahiro.

00:41.340 --> 00:43.600
I'm a security researcher.

00:44.100 --> 00:46.380
Hi, my name is Kenya.

00:46.380 --> 00:48.140
I'm a researcher, too.

00:48.420 --> 00:55.220
We are not native English speakers, so better support for our English is no good.

00:56.640 --> 00:58.240
Okay.

00:59.220 --> 01:03.540
Firstly, let us introduce ourselves.

01:03.960 --> 01:07.880
We are a small security firm located in Saitama, Japan.

01:08.040 --> 01:09.320
Do you know Saitama?

01:11.980 --> 01:16.820
Saitama is a peaceful, distinct line north of Tokyo.

01:18.280 --> 01:22.440
As you see, it has great nature.

01:22.580 --> 01:26.280
We live in some urban area near Tokyo.

01:31.300 --> 01:46.340
Up there, we do various security-related works from vulnerability assessments, code audits, forensics analysis, and some good research.

01:48.260 --> 01:51.580
We play CTFs, too.

01:52.500 --> 01:56.440
We also give talks in conferences.

01:59.230 --> 02:00.830
So, what is lip reading?

02:01.390 --> 02:04.170
Lip reading is a technique.

02:04.650 --> 02:09.770
Reading speakers' lips to extract what he or she is saying.

02:09.770 --> 02:14.230
Commonly used among hearing-impaired people.

02:14.230 --> 02:17.430
Let's see the action.

02:23.290 --> 02:24.610
Just

02:37.000 --> 02:37.820
a moment.

02:47.430 --> 02:48.650
Yes.

02:49.470 --> 02:51.350
You hear no audio.

02:51.350 --> 02:54.690
But we map lips.

02:54.690 --> 02:57.090
We map the area with lips.

02:57.370 --> 02:59.390
And lip reading works like this.

02:59.870 --> 03:06.550
In lip reading, people say lips and extract what he or she is saying.

03:07.450 --> 03:12.430
So, let us show another example.

03:26.760 --> 03:29.500
It is not an easy task.

03:29.800 --> 03:38.160
Not only it takes quite a long time to master it, but also even professional human lip readers often misread.

03:41.840 --> 03:47.540
Automated lip reading is somewhat a hot area of research these days.

03:47.540 --> 03:56.300
As we know, we have LipNet, which has been written by Oxford University, et al., probably three years ago.

03:57.160 --> 03:58.960
So, what is LipNet?

03:58.980 --> 04:03.040
LipNet is an awesome lip reading neural network.

04:03.480 --> 04:13.960
Researchers have shown it can read words of the lips of English speakers in more than 90% accuracy of a person.

04:15.540 --> 04:23.980
Like human lip readers, LipNet works by looking for the movement of the lips.

04:24.440 --> 04:33.240
More specifically, it extracts the images of mouses out of the input frames.

04:33.440 --> 04:38.980
For instruction, it uses a face detector and predictor.

04:38.980 --> 04:44.640
Here are examples of extracted mouse images.

04:48.880 --> 04:51.120
Did you notice something?

04:52.660 --> 04:55.500
Why are they in color?

04:57.320 --> 05:07.380
Because LipNet tends to overfit on grayscale images since it has rather simple CNNs in the former stage.

05:07.840 --> 05:12.540
Well, let's see it in action.

05:14.600 --> 05:15.800
The GRID.

05:15.800 --> 05:28.600
GRID is a large multi-talker audio-visual sentencing corpus to support joint computational behavior studies in speech perception.

05:28.660 --> 05:38.800
It consists of high-quality audio and facial recordings of 1,000 sentences spoken by each of 34 speakers.

05:38.800 --> 05:46.780
You can check it as a landmark corpus for speech recognition in controlled environments.

05:47.520 --> 05:51.120
Now, let's see how well LipNet works.

05:52.780 --> 06:00.400
Ah, we will be using pre-trained LipNet in our two clever ones.

06:12.870 --> 06:18.430
As you see, our frame is displayed and recognition is running.

06:28.560 --> 06:30.600
Oh, see?

06:32.680 --> 06:38.620
Red, blue, white, eye, nine, please.

06:38.620 --> 06:40.340
Not so bad.

06:40.420 --> 06:48.320
In contrast, pressure on human lip readers mark about 50, or a solid score in average.

06:51.640 --> 06:53.820
So far, so good.

06:54.480 --> 06:59.200
Then, let it spin on some real-world recordings.

07:11.140 --> 07:12.500
This is a recording.

07:31.480 --> 07:42.320
So, I'm sorry, but it's a bit hard to see why it's red.

07:42.320 --> 07:48.980
But, no, he shouldn't be talking such nonsense.

07:49.500 --> 07:51.980
It is so GRID-like sentence.

07:52.280 --> 07:53.660
What happened?

07:55.980 --> 07:57.760
It might be overfit.

07:57.760 --> 07:58.420
Maybe.

07:59.640 --> 08:01.760
Vocabulary might be limited.

08:01.760 --> 08:02.380
Maybe.

08:04.240 --> 08:11.620
Anyways, in real world, people talk in way more variety than controlled environments.

08:11.620 --> 08:23.600
Feeding Lips, LipNet gives us sentences because it requires extensive retraining on updating vocabulary.

08:24.020 --> 08:35.160
For easy update of vocabulary, we think it is better to decouple sentence generation by give forms instead of sentences.

08:35.160 --> 08:42.720
Actually, B2P, a more modern lip-reading model, produces forms.

08:44.340 --> 08:53.360
So, let's say the curse of GRID remains upon us until we undergo the full retrain.

08:54.200 --> 08:57.020
Retrain, go, eat.

08:57.100 --> 09:00.800
Using something more fun.

09:05.790 --> 09:16.210
Now, we almost hear you say, why are you using such nonsense, Zen?

09:18.070 --> 09:19.450
Yeah.

09:19.450 --> 09:21.090
It's right.

09:21.090 --> 09:23.830
We could not have compasses handy.

09:25.830 --> 09:41.990
As you see, L, R, W, 1 and 2, the lip-reading in the wide compasses have non-commercial only policy, enforced by BBC, and introducing a long turnaround time.

09:41.990 --> 09:49.810
Because we are not students, nor in research institution, we could not use them.

09:50.330 --> 10:01.170
For L, R, L, 3, the lip-reading in the sentences compass has very different format for alignments.

10:01.170 --> 10:04.650
Alignments are precise transcriptions.

10:04.910 --> 10:20.110
For example, L, R, L, 3 use seconds for the time point, and it does not use the C or SP notations.

10:20.110 --> 10:29.370
For this reason, we are forced to convert the format to one expected by the implementation we use.

10:30.350 --> 10:35.550
On top of that, it contains far, far longer clips than GRID.

10:36.490 --> 10:40.590
And we must arrange input format for that.

10:41.170 --> 10:48.110
During doing something like this, our time has run out.

10:48.390 --> 10:55.070
So, please forgive us for using ... for the rest of our session.

10:56.330 --> 10:59.990
Of course, we don't stop there.

11:00.230 --> 11:04.310
We are to decouple lip-reading models out of our two.

11:04.630 --> 11:08.130
Well, enough for excuse.

11:08.230 --> 11:10.770
Let's get back to the topic.

11:15.870 --> 11:22.750
So, we want our two clever hands to deal with security cameras.

11:22.750 --> 11:25.710
How, where does it do?

11:26.650 --> 11:31.850
As you know, security camera streams present full of challenges.

11:31.910 --> 11:39.040
People tend to look down, lower quality of image, lower frame rate, and tremendous marbling.

11:39.040 --> 11:43.160
So , lower quality.

11:43.160 --> 11:52.800
This is mostly because they are small devices, so optics are limited, and they are designed to record for a long time.

11:53.240 --> 11:58.860
Next, people seem to look down.

11:58.860 --> 12:06.720
This is because they are often mounted somewhere hard to reach to, often somewhere high, or looking down.

12:08.180 --> 12:12.820
Lastly, people look marbling all the time.

12:12.820 --> 12:18.820
This is because of angle of camera, often, they are mounted looking down people.

12:21.860 --> 12:33.080
Two years ago, Roskrans applied lip-reading to security cameras in Dutch language, and he succeeded to detect aggressions.

12:33.080 --> 12:41.940
In his research, a URAS-based model is used for detecting certain words, such as cars, and streets.

12:44.780 --> 12:52.940
How, where does it do?

12:53.660 --> 12:55.740
Okay, let's see.

13:07.930 --> 13:09.790
Security camera recordings.

13:28.660 --> 13:38.980
You see a red rectangle, and the rectangle shows a MacGyver bus is reading that area.

13:50.530 --> 14:02.690
So, see, it had no problem to detect faces and read the lips, in spite of the challenges we have described.

14:11.490 --> 14:13.310
So far, so good.

14:13.310 --> 14:14.550
But wait.

14:15.550 --> 14:19.270
Then, what is the point of our research?

14:20.010 --> 14:21.570
It is concurrency.

14:21.570 --> 14:30.170
Honestly, we have not seen a single research of applying a model to the concurrent lip-reading of a multiple person.

14:31.410 --> 14:33.470
This is what we did.

14:33.470 --> 14:39.550
Today, we stand here to show you how we read multiple persons in concurrent manner.

14:40.230 --> 14:49.690
On top of that, we are going to identify speakers so that we can track threads of conversations in a set.

14:54.710 --> 15:02.390
So, in order to read the lips, we must detect where they stand.

15:02.390 --> 15:03.990
Sorry, the face.

15:05.050 --> 15:12.370
We used DLib-based detection to detect them.

15:12.670 --> 15:19.030
As you know, DLib is quite a vast image processing library powered by machine learning techniques.

15:19.770 --> 15:26.290
We once thought to utilize something more orthodox, say, using OpenCV.

15:26.290 --> 15:30.530
But it doesn't go well.

15:31.090 --> 15:46.870
Detectors based on OpenCV tend to be picky over alignment, dropping person not standing upward, or something like that.

15:46.870 --> 15:54.050
On the other hand, ones based on DLib handle cases like this just fine.

15:54.050 --> 15:57.970
Or more robust, at least.

15:58.490 --> 16:03.410
As you know, DLib does hook-based detection by default.

16:03.750 --> 16:08.690
But it can utilize CNN for more precise detection.

16:09.490 --> 16:12.490
Clairvoyance can use it too.

16:12.490 --> 16:15.850
But it comes with significantly higher cost.

16:15.850 --> 16:20.370
About 15 times of that of hook-based detection.

16:26.320 --> 16:33.280
After detecting faces, we keep their features for their identities.

16:34.180 --> 16:41.020
For facial recognition processes, we use the face recognition library.

16:41.020 --> 16:49.760
With it, we can hash facial features into 128-dimensional vectors called encodings.

16:49.760 --> 16:59.200
We recognize faces by keeping zero encodings and finding distances among them.

17:00.960 --> 17:11.340
But fortunately, our recognition process is not quite stable.

17:11.880 --> 17:13.240
That is a problem.

17:13.240 --> 17:18.280
We call rank swaps more specifically.

17:18.900 --> 17:21.740
The facial tag can jump around.

17:21.740 --> 17:23.940
But why do they do?

17:25.260 --> 17:29.320
We have identified three root causes.

17:31.460 --> 17:37.760
The first one is because facial encodings are brittle.

17:38.000 --> 17:47.420
By saying brittle, we mean we cannot get the same encoding for the same face in the same pose.

17:49.620 --> 17:56.200
The next one is because facial detection order is not stable.

17:56.820 --> 18:02.820
By saying not stable means we cannot predict the order of the faces reported.

18:04.580 --> 18:13.240
And the last one is because resembling threshold.

18:13.240 --> 18:18.500
The distance with the face recognition library considers resembling enough.

18:18.500 --> 18:23.280
It's set at 0.6, quite a high number.

18:23.280 --> 18:26.580
But is this number really high?

18:27.140 --> 18:30.100
Let us show some pictures.

18:32.960 --> 18:38.960
Trump and Hillary both showing 0.3 inches.

18:40.000 --> 18:44.000
They both have distances of 0.3 inches.

18:44.000 --> 18:45.520
Can you believe it?

18:47.780 --> 18:49.340
Oh, okay.

18:49.340 --> 18:52.180
Fictional ranks are not easy.

18:52.240 --> 18:57.420
But we believe it is safe to assume faces are not supported.

18:58.500 --> 19:06.700
We need a few experiments.

19:10.390 --> 19:16.690
So, after recognizing faces, we detect their lips.

19:17.130 --> 19:22.970
To detect lips, we use 68 points face predictor.

19:23.290 --> 19:25.970
Taking points after 48.

19:26.730 --> 19:34.850
After detecting lips, then we research them as we knew.

19:35.130 --> 19:40.770
Since our model expects them in 100 by 50.

19:40.950 --> 19:43.210
So, we target that size.

19:43.470 --> 19:50.310
For better recognition, we also attempt to up-sampling them if they are small.

19:50.470 --> 19:56.690
For up-sampling them, we could utilize some super resolution imaging techniques.

19:56.910 --> 20:03.930
SRs are techniques that intend to recreate details.

20:04.070 --> 20:07.810
But is SR really helpful?

20:08.790 --> 20:12.070
SRs are quite expensive.

20:12.590 --> 20:17.370
So, we did some experiments to weigh their costs.

20:17.630 --> 20:19.690
Let us show some pictures.

20:21.650 --> 20:28.810
The center one and the right one are both resized instances of the left one.

20:29.190 --> 20:35.350
The center is done with SR, and the right is done with the nearest neighbor method.

20:36.430 --> 20:38.270
Can you spot the difference?

20:39.290 --> 20:41.030
We could not.

20:41.410 --> 20:49.950
So, we concluded that SRs are not worth the cost for our use cases.

20:49.950 --> 20:51.870
So, we dropped the idea.

20:53.630 --> 21:05.850
And to compensate lower frame rate, we consider the interpolating frames before creating our model.

21:06.090 --> 21:15.430
But as far as we know, modern security cameras tend to generate enough frame rate just fine.

21:16.250 --> 21:26.050
So, we think interpolating frames would be superficial, so we dropped the idea either.

21:29.170 --> 21:43.670
After our ribs got resized, we sent them to reading process by batch by batch, face-by-face, for concurrent readings.

21:47.720 --> 21:49.660
Reading process.

21:49.660 --> 21:58.140
Reading process is tasked to feed our model continuously and output the reading with a name and some timestamp.

21:58.220 --> 22:03.690
Reading process is driven by coroutines, so reading occurs in FIFO order.

22:06.760 --> 22:09.280
Well, enough talking.

22:09.280 --> 22:11.320
Let's see how it goes.

22:13.930 --> 22:15.410
Hmm.

22:37.890 --> 22:41.040
We are reading four persons in parallel.

23:07.470 --> 23:08.910
See?

23:09.030 --> 23:14.670
We have succeeded to read four people in four ways of talking.

23:19.490 --> 23:25.900
As a bonus, we really deserve to clear bonus as free software, as free in freedom.

23:25.900 --> 23:33.540
Please feel free to experiment with it, or please send us a request.

23:37.520 --> 23:42.780
Please mention us in Twitter or something for questions.

23:43.160 --> 23:44.580
We'll reply later.

23:45.080 --> 23:45.980
Okay?

23:49.620 --> 23:50.540
Oh.

23:50.980 --> 23:54.000
Well, that is all for today.

23:54.000 --> 23:56.480
Thank you for listening to us.

