Hi, everyone, and welcome to the afternoon session at AI Village. I am pleased to introduce Kenya Yoshimura and Takahiro Yoshimura on Clairvoyant's concurrent lip reading for the smart masses. Thank you, everybody. Please give them a huge round of applause. Thank you. Hi, everyone. Nice to meet you. Today, we are talking about our research on automated lip reading. If you have any questions, please mention us in Twitter or something at any time. Thank you. My name is Takahiro. I'm a security researcher. Hi, my name is Kenya. I'm a researcher, too. We are not native English speakers, so better support for our English is no good. Okay. Firstly, let us introduce ourselves. We are a small security firm located in Saitama, Japan. Do you know Saitama? Saitama is a peaceful, distinct line north of Tokyo. As you see, it has great nature. We live in some urban area near Tokyo. Up there, we do various security-related works from vulnerability assessments, code audits, forensics analysis, and some good research. We play CTFs, too. We also give talks in conferences. So, what is lip reading? Lip reading is a technique. Reading speakers' lips to extract what he or she is saying. Commonly used among hearing-impaired people. Let's see the action. Just a moment. Yes. You hear no audio. But we map lips. We map the area with lips. And lip reading works like this. In lip reading, people say lips and extract what he or she is saying. So, let us show another example. It is not an easy task. Not only it takes quite a long time to master it, but also even professional human lip readers often misread. Automated lip reading is somewhat a hot area of research these days. As we know, we have LipNet, which has been written by Oxford University, et al., probably three years ago. So, what is LipNet? LipNet is an awesome lip reading neural network. Researchers have shown it can read words of the lips of English speakers in more than 90% accuracy of a person. Like human lip readers, LipNet works by looking for the movement of the lips. More specifically, it extracts the images of mouses out of the input frames. For instruction, it uses a face detector and predictor. Here are examples of extracted mouse images. Did you notice something? Why are they in color? Because LipNet tends to overfit on grayscale images since it has rather simple CNNs in the former stage. Well, let's see it in action. The GRID. GRID is a large multi-talker audio-visual sentencing corpus to support joint computational behavior studies in speech perception. It consists of high-quality audio and facial recordings of 1,000 sentences spoken by each of 34 speakers. You can check it as a landmark corpus for speech recognition in controlled environments. Now, let's see how well LipNet works. Ah, we will be using pre-trained LipNet in our two clever ones. As you see, our frame is displayed and recognition is running. Oh, see? Red, blue, white, eye, nine, please. Not so bad. In contrast, pressure on human lip readers mark about 50, or a solid score in average. So far, so good. Then, let it spin on some real-world recordings. This is a recording. So, I'm sorry, but it's a bit hard to see why it's red. But, no, he shouldn't be talking such nonsense. It is so GRID-like sentence. What happened? It might be overfit. Maybe. Vocabulary might be limited. Maybe. Anyways, in real world, people talk in way more variety than controlled environments. Feeding Lips, LipNet gives us sentences because it requires extensive retraining on updating vocabulary. For easy update of vocabulary, we think it is better to decouple sentence generation by give forms instead of sentences. Actually, B2P, a more modern lip-reading model, produces forms. So, let's say the curse of GRID remains upon us until we undergo the full retrain. Retrain, go, eat. Using something more fun. Now, we almost hear you say, why are you using such nonsense, Zen? Yeah. It's right. We could not have compasses handy. 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. Because we are not students, nor in research institution, we could not use them. For L, R, L, 3, the lip-reading in the sentences compass has very different format for alignments. Alignments are precise transcriptions. For example, L, R, L, 3 use seconds for the time point, and it does not use the C or SP notations. For this reason, we are forced to convert the format to one expected by the implementation we use. On top of that, it contains far, far longer clips than GRID. And we must arrange input format for that. During doing something like this, our time has run out. So, please forgive us for using ... for the rest of our session. Of course, we don't stop there. We are to decouple lip-reading models out of our two. Well, enough for excuse. Let's get back to the topic. So, we want our two clever hands to deal with security cameras. How, where does it do? As you know, security camera streams present full of challenges. People tend to look down, lower quality of image, lower frame rate, and tremendous marbling. So, lower quality. This is mostly because they are small devices, so optics are limited, and they are designed to record for a long time. Next, people seem to look down. This is because they are often mounted somewhere hard to reach to, often somewhere high, or looking down. Lastly, people look marbling all the time. This is because of angle of camera, often, they are mounted looking down people. Two years ago, Roskrans applied lip-reading to security cameras in Dutch language, and he succeeded to detect aggressions. In his research, a URAS-based model is used for detecting certain words, such as cars, and streets. How, where does it do? Okay, let's see. Security camera recordings. You see a red rectangle, and the rectangle shows a MacGyver bus is reading that area. So, see, it had no problem to detect faces and read the lips, in spite of the challenges we have described. So far, so good. But wait. Then, what is the point of our research? It is concurrency. Honestly, we have not seen a single research of applying a model to the concurrent lip-reading of a multiple person. This is what we did. Today, we stand here to show you how we read multiple persons in concurrent manner. On top of that, we are going to identify speakers so that we can track threads of conversations in a set. So, in order to read the lips, we must detect where they stand. Sorry, the face. We used DLib-based detection to detect them. As you know, DLib is quite a vast image processing library powered by machine learning techniques. We once thought to utilize something more orthodox, say, using OpenCV. But it doesn't go well. Detectors based on OpenCV tend to be picky over alignment, dropping person not standing upward, or something like that. On the other hand, ones based on DLib handle cases like this just fine. Or more robust, at least. As you know, DLib does hook-based detection by default. But it can utilize CNN for more precise detection. Clairvoyance can use it too. But it comes with significantly higher cost. About 15 times of that of hook-based detection. After detecting faces, we keep their features for their identities. For facial recognition processes, we use the face recognition library. With it, we can hash facial features into 128-dimensional vectors called encodings. We recognize faces by keeping zero encodings and finding distances among them. But fortunately, our recognition process is not quite stable. That is a problem. We call rank swaps more specifically. The facial tag can jump around. But why do they do? We have identified three root causes. The first one is because facial encodings are brittle. By saying brittle, we mean we cannot get the same encoding for the same face in the same pose. The next one is because facial detection order is not stable. By saying not stable means we cannot predict the order of the faces reported. And the last one is because resembling threshold. The distance with the face recognition library considers resembling enough. It's set at 0.6, quite a high number. But is this number really high? Let us show some pictures. Trump and Hillary both showing 0.3 inches. They both have distances of 0.3 inches. Can you believe it? Oh, okay. Fictional ranks are not easy. But we believe it is safe to assume faces are not supported. We need a few experiments. So, after recognizing faces, we detect their lips. To detect lips, we use 68 points face predictor. Taking points after 48. After detecting lips, then we research them as we knew. Since our model expects them in 100 by 50. So, we target that size. For better recognition, we also attempt to up-sampling them if they are small. For up-sampling them, we could utilize some super resolution imaging techniques. SRs are techniques that intend to recreate details. But is SR really helpful? SRs are quite expensive. So, we did some experiments to weigh their costs. Let us show some pictures. The center one and the right one are both resized instances of the left one. The center is done with SR, and the right is done with the nearest neighbor method. Can you spot the difference? We could not. So, we concluded that SRs are not worth the cost for our use cases. So, we dropped the idea. And to compensate lower frame rate, we consider the interpolating frames before creating our model. But as far as we know, modern security cameras tend to generate enough frame rate just fine. So, we think interpolating frames would be superficial, so we dropped the idea either. After our ribs got resized, we sent them to reading process by batch by batch, face-by-face, for concurrent readings. Reading process. Reading process is tasked to feed our model continuously and output the reading with a name and some timestamp. Reading process is driven by coroutines, so reading occurs in FIFO order. Well, enough talking. Let's see how it goes. Hmm. We are reading four persons in parallel. See? We have succeeded to read four people in four ways of talking. As a bonus, we really deserve to clear bonus as free software, as free in freedom. Please feel free to experiment with it, or please send us a request. Please mention us in Twitter or something for questions. We'll reply later. Okay? Oh. Well, that is all for today. Thank you for listening to us.