start	end	text
0	5860	Hi, everyone, and welcome to the afternoon session at AI Village. I am pleased to introduce
5860	11840	Kenya Yoshimura and Takahiro Yoshimura on Clairvoyant's concurrent lip reading for the
11840	15860	smart masses. Thank you, everybody. Please give them a huge round of applause.
20220	28200	Thank you. Hi, everyone. Nice to meet you. Today, we are talking about our research
28200	34720	on automated lip reading. If you have any questions, please mention us in Twitter or
34720	43600	something at any time. Thank you. My name is Takahiro. I'm a security researcher.
44100	51440	Hi, my name is Kenya. I'm a researcher, too. We are not native English speakers,
51440	63540	so better support for our English is no good. Okay. Firstly, let us introduce ourselves.
63960	69320	We are a small security firm located in Saitama, Japan. Do you know Saitama?
71980	76820	Saitama is a peaceful, distinct line north of Tokyo.
78280	86280	As you see, it has great nature. We live in some urban area near Tokyo.
91300	99760	Up there, we do various security-related works from vulnerability assessments,
99760	106340	code audits, forensics analysis, and some good research.
108260	120830	We play CTFs, too. We also give talks in conferences. So, what is lip reading?
121390	129770	Lip reading is a technique. Reading speakers' lips to extract what he or she is saying.
129770	137430	Commonly used among hearing-impaired people. Let's see the action.
143290	157820	Just a moment.
167430	178450	Yes. You hear no audio. But we map lips. We map the area with lips. And lip reading works like
178450	191130	this. In lip reading, people say lips and extract what he or she is saying. So, let us show another
191130	213540	example. It is not an easy task. Not only it takes quite a long time to master it,
213540	218160	but also even professional human lip readers often misread.
221840	229960	Automated lip reading is somewhat a hot area of research these days. As we know, we have LipNet,
229960	236300	which has been written by Oxford University, et al., probably three years ago.
237160	243040	So, what is LipNet? LipNet is an awesome lip reading neural network.
243480	252460	Researchers have shown it can read words of the lips of English speakers in more than 90% accuracy
252460	263980	of a person. Like human lip readers, LipNet works by looking for the movement of the lips.
264440	274680	More specifically, it extracts the images of mouses out of the input frames. For instruction,
274680	284640	it uses a face detector and predictor. Here are examples of extracted mouse images.
288880	301460	Did you notice something? Why are they in color? Because LipNet tends to overfit on grayscale
301460	312540	images since it has rather simple CNNs in the former stage. Well, let's see it in action.
314600	323740	The GRID. GRID is a large multi-talker audio-visual sentencing corpus to support joint
323740	330420	computational behavior studies in speech perception. It consists of high-quality
331460	338800	audio and facial recordings of 1,000 sentences spoken by each of 34 speakers.
338800	346780	You can check it as a landmark corpus for speech recognition in controlled environments.
347520	351120	Now, let's see how well LipNet works.
352780	360400	Ah, we will be using pre-trained LipNet in our two clever ones.
372870	378430	As you see, our frame is displayed and recognition is running.
388560	390600	Oh, see?
392680	401860	Red, blue, white, eye, nine, please. Not so bad. In contrast,
401860	408320	pressure on human lip readers mark about 50, or a solid score in average.
411640	413820	So far, so good.
414480	432500	Then, let it spin on some real-world recordings. This is a recording.
451480	462940	So, I'm sorry, but it's a bit hard to see why it's red. But,
465220	471980	no, he shouldn't be talking such nonsense. It is so GRID-like sentence.
472280	473660	What happened?
475980	477760	It might be overfit.
477760	478420	Maybe.
479640	481760	Vocabulary might be limited.
481760	482380	Maybe.
484240	491620	Anyways, in real world, people talk in way more variety than controlled environments.
491620	502080	Feeding Lips, LipNet gives us sentences because it requires extensive retraining on updating
502080	511140	vocabulary. For easy update of vocabulary, we think it is better to decouple sentence generation
511140	520880	by give forms instead of sentences. Actually, B2P, a more modern lip-reading model,
520880	522720	produces forms.
524340	532680	So, let's say the curse of GRID remains upon us until we undergo the full
532680	540800	retrain. Retrain, go, eat. Using something more fun.
545790	556210	Now, we almost hear you say, why are you using such nonsense, Zen?
558070	563830	Yeah. It's right. We could not have compasses handy.
565830	575550	As you see, L, R, W, 1 and 2, the lip-reading in the wide compasses have non-commercial only
575550	583910	policy, enforced by BBC, and introducing a long turnaround time. Because we are not students,
583910	589810	nor in research institution, we could not use them.
590330	594910	For L, R, L, 3, the lip-reading in the sentences compass
596010	604650	has very different format for alignments. Alignments are precise transcriptions.
604910	618590	For example, L, R, L, 3 use seconds for the time point, and it does not use the C or SP
618590	626170	notations. For this reason, we are forced to convert the format to one expected by the
626170	635550	implementation we use. On top of that, it contains far, far longer clips than GRID.
636490	645430	And we must arrange input format for that. During doing something like this,
645430	655070	our time has run out. So, please forgive us for using ... for the rest of our session.
656330	664310	Of course, we don't stop there. We are to decouple lip-reading models out of our two.
664630	670770	Well, enough for excuse. Let's get back to the topic.
675870	685710	So, we want our two clever hands to deal with security cameras. How, where does it do?
686650	694190	As you know, security camera streams present full of challenges. People tend to look down,
694190	699040	lower quality of image, lower frame rate, and tremendous marbling.
699040	708620	So, lower quality. This is mostly because they are small devices, so optics are limited,
709060	719600	and they are designed to record for a long time. Next, people seem to look down. This is because
719600	726720	they are often mounted somewhere hard to reach to, often somewhere high, or looking down.
728180	736020	Lastly, people look marbling all the time. This is because of angle of camera, often,
736020	745800	they are mounted looking down people. Two years ago, Roskrans applied lip-reading
745800	753080	to security cameras in Dutch language, and he succeeded to detect aggressions.
753080	760520	In his research, a URAS-based model is used for detecting certain words, such as cars,
760520	775740	and streets. How, where does it do? Okay, let's see.
787930	789790	Security camera recordings.
808660	818980	You see a red rectangle, and the rectangle shows a MacGyver bus is reading that area.
830530	841430	So, see, it had no problem to detect faces and read the lips, in spite of the challenges we
841430	859270	have described. So far, so good. But wait. Then, what is the point of our research?
860010	867190	It is concurrency. Honestly, we have not seen a single research of applying a model to the
867190	875410	concurrent lip-reading of a multiple person. This is what we did. Today, we stand here to
875410	882510	show you how we read multiple persons in concurrent manner. On top of that, we are
882510	889690	going to identify speakers so that we can track threads of conversations in a set.
894710	903990	So, in order to read the lips, we must detect where they stand. Sorry, the face.
905050	916310	We used DLib-based detection to detect them. As you know, DLib is quite a vast image processing
916310	922770	library powered by machine learning techniques. We once thought to utilize something more orthodox,
922770	938490	say, using OpenCV. But it doesn't go well. Detectors based on OpenCV tend to be picky
938490	948490	over alignment, dropping person not standing upward, or something like that. On the other hand,
948490	959930	ones based on DLib handle cases like this just fine. Or more robust, at least. As you know,
959930	968690	DLib does hook-based detection by default. But it can utilize CNN for more precise detection.
969490	977630	Clairvoyance can use it too. But it comes with significantly higher cost. About 15 times of
977630	993280	that of hook-based detection. After detecting faces, we keep their features for their identities.
994180	1002280	For facial recognition processes, we use the face recognition library. With it, we can
1002280	1013860	hash facial features into 128-dimensional vectors called encodings. We recognize faces by keeping
1013860	1028000	zero encodings and finding distances among them. But fortunately, our recognition process
1028960	1038280	is not quite stable. That is a problem. We call rank swaps more specifically.
1038900	1049320	The facial tag can jump around. But why do they do? We have identified three root causes.
1051460	1057760	The first one is because facial encodings are brittle.
1058000	1067420	By saying brittle, we mean we cannot get the same encoding for the same face in the same pose.
1069620	1076200	The next one is because facial detection order is not stable.
1076820	1082820	By saying not stable means we cannot predict the order of the faces reported.
1084580	1095640	And the last one is because resembling threshold. The distance with the face recognition
1095640	1104860	library considers resembling enough. It's set at 0.6, quite a high number. But is this number
1104860	1110100	really high? Let us show some pictures.
1112960	1124500	Trump and Hillary both showing 0.3 inches. They both have distances of 0.3 inches. Can you believe
1124500	1136400	it? Oh, okay. Fictional ranks are not easy. But we believe it is safe to assume faces are not
1136400	1156690	supported. We need a few experiments. So, after recognizing faces, we detect their lips.
1157130	1165970	To detect lips, we use 68 points face predictor. Taking points after 48.
1166730	1179470	After detecting lips, then we research them as we knew. Since our model expects them in 100 by
1179470	1187670	50. So, we target that size. For better recognition, we also attempt to up-sampling them
1188590	1194770	if they are small. For up-sampling them, we could utilize some super resolution imaging
1194770	1207810	techniques. SRs are techniques that intend to recreate details. But is SR really helpful?
1208790	1218230	SRs are quite expensive. So, we did some experiments to weigh their costs. Let us show
1218230	1228810	some pictures. The center one and the right one are both resized instances of the left one.
1229190	1235350	The center is done with SR, and the right is done with the nearest neighbor method.
1236430	1245450	Can you spot the difference? We could not. So, we concluded that SRs are not worth
1245450	1259990	the cost for our use cases. So, we dropped the idea. And to compensate lower frame rate,
1259990	1271310	we consider the interpolating frames before creating our model. But as far as we know,
1271310	1275430	modern security cameras tend to generate enough frame rate just fine.
1276250	1286050	So, we think interpolating frames would be superficial, so we dropped the idea either.
1289170	1299290	After our ribs got resized, we sent them to reading process by batch by batch,
1299290	1311140	face-by-face, for concurrent readings. Reading process. Reading process is tasked
1311140	1318140	to feed our model continuously and output the reading with a name and some timestamp.
1318220	1323690	Reading process is driven by coroutines, so reading occurs in FIFO order.
1326760	1331320	Well, enough talking. Let's see how it goes.
1333930	1361040	Hmm. We are reading four persons in parallel.
1387470	1394670	See? We have succeeded to read four people in four ways of talking.
1399490	1405900	As a bonus, we really deserve to clear bonus as free software, as free in freedom.
1405900	1413540	Please feel free to experiment with it, or please send us a request.
1417520	1425980	Please mention us in Twitter or something for questions. We'll reply later. Okay?
1429620	1436480	Oh. Well, that is all for today. Thank you for listening to us.
