1 00:00:00,080 --> 00:00:02,480 i am pleased to introduce fletcher who 2 00:00:02,480 --> 00:00:04,880 will be speaking about truth sayer 3 00:00:04,880 --> 00:00:08,000 make a remote lie detector and become 4 00:00:08,000 --> 00:00:10,639 irresistible on zoom calls 5 00:00:10,639 --> 00:00:13,920 oh no this thing just died 6 00:00:13,920 --> 00:00:15,839 no accident no it's not fine fletcher 7 00:00:15,839 --> 00:00:17,359 you will get the proper introduction 8 00:00:17,359 --> 00:00:21,439 everyone deserves so fletcher heisler 9 00:00:21,439 --> 00:00:23,519 good enough or did i get it 10 00:00:23,519 --> 00:00:25,760 that's good or did i get it 11 00:00:25,760 --> 00:00:28,480 hell yeah nail it fletcher heisler runs 12 00:00:28,480 --> 00:00:30,400 the youtube channel everything is hacked 13 00:00:30,400 --> 00:00:31,840 does he have any subscribers in the 14 00:00:31,840 --> 00:00:32,960 audience 15 00:00:32,960 --> 00:00:35,760 oh yeah oh you got two 16 00:00:35,760 --> 00:00:37,600 we're taking it we're gonna get you that 17 00:00:37,600 --> 00:00:39,920 gold play button oh my goodness yeah six 18 00:00:39,920 --> 00:00:41,840 won't start at night get two where he 19 00:00:41,840 --> 00:00:43,680 explores projects such as face 20 00:00:43,680 --> 00:00:45,920 controlled keyboard and a video filter 21 00:00:45,920 --> 00:00:48,239 to add pants when you forget to put them 22 00:00:48,239 --> 00:00:50,480 on very helpful by dave fletcher is the 23 00:00:50,480 --> 00:00:52,160 director of development developer 24 00:00:52,160 --> 00:00:54,480 enablement at varico he previously 25 00:00:54,480 --> 00:00:56,719 founded hunter 2 to give developers 26 00:00:56,719 --> 00:00:58,079 hands-on abstech training through 27 00:00:58,079 --> 00:01:00,960 interactive labs he is he has also 28 00:01:00,960 --> 00:01:04,159 founded real python a community and set 29 00:01:04,159 --> 00:01:05,840 of online training resources that have 30 00:01:05,840 --> 00:01:07,600 taught practical programming and web 31 00:01:07,600 --> 00:01:09,439 development skills to hundreds of 32 00:01:09,439 --> 00:01:11,360 thousands of students around the world 33 00:01:11,360 --> 00:01:13,119 with that i'm pleased to introduce 34 00:01:13,119 --> 00:01:15,040 fletcher talking about trusayer make a 35 00:01:15,040 --> 00:01:16,720 remote lie detector and become 36 00:01:16,720 --> 00:01:19,119 irresistible on zoom kick calls a round 37 00:01:19,119 --> 00:01:22,280 of applause 38 00:01:33,520 --> 00:01:36,000 jj oh 39 00:01:36,000 --> 00:01:37,439 yeah 40 00:01:37,439 --> 00:01:38,640 all right 41 00:01:38,640 --> 00:01:40,159 this is a 20-minute talk i don't have 42 00:01:40,159 --> 00:01:41,840 time for things like about me and 43 00:01:41,840 --> 00:01:43,759 agendas and things like that thank you 44 00:01:43,759 --> 00:01:46,079 jc that was great 45 00:01:46,079 --> 00:01:48,960 now we're we're diving right in here 46 00:01:48,960 --> 00:01:51,439 in the world of dune 47 00:01:51,439 --> 00:01:54,000 there are truth sayers these are mystics 48 00:01:54,000 --> 00:01:55,280 who can tell 49 00:01:55,280 --> 00:01:57,520 anybody's inner state just by 50 00:01:57,520 --> 00:01:59,280 picking up on their breathing their 51 00:01:59,280 --> 00:02:01,520 heart rate other signals that mere 52 00:02:01,520 --> 00:02:02,640 mortals 53 00:02:02,640 --> 00:02:04,640 can't that they're invisible to the 54 00:02:04,640 --> 00:02:06,640 naked eye 55 00:02:06,640 --> 00:02:08,959 back in the the real world 56 00:02:08,959 --> 00:02:11,440 polygraphs are our tool of choice for 57 00:02:11,440 --> 00:02:13,680 detecting deception they're widely used 58 00:02:13,680 --> 00:02:15,920 in many settings despite their 59 00:02:15,920 --> 00:02:17,520 effectiveness being 60 00:02:17,520 --> 00:02:19,200 controversial at best there are a lot of 61 00:02:19,200 --> 00:02:21,360 different studies of varying conclusions 62 00:02:21,360 --> 00:02:22,480 there 63 00:02:22,480 --> 00:02:24,480 what polygraphs really measure is 64 00:02:24,480 --> 00:02:26,959 nervousness as a proxy for deception so 65 00:02:26,959 --> 00:02:28,879 it's possible to beat them 66 00:02:28,879 --> 00:02:30,720 if you use certain visualization 67 00:02:30,720 --> 00:02:32,560 techniques or 68 00:02:32,560 --> 00:02:35,200 maybe you have a common trick as a 69 00:02:35,200 --> 00:02:36,959 thumbtack in the shoe which really just 70 00:02:36,959 --> 00:02:39,200 generates a lot of noise 71 00:02:39,200 --> 00:02:40,720 if you can manage to control your 72 00:02:40,720 --> 00:02:42,000 breathing and heart rate and 73 00:02:42,000 --> 00:02:44,319 perspiration so forth but 74 00:02:44,319 --> 00:02:46,640 it's also really obvious when you're 75 00:02:46,640 --> 00:02:48,480 getting a polygraph test which can be 76 00:02:48,480 --> 00:02:50,480 useful for the test giver it can be sort 77 00:02:50,480 --> 00:02:52,560 of an intimidation tactic 78 00:02:52,560 --> 00:02:54,160 we are going to get the truth out of you 79 00:02:54,160 --> 00:02:55,599 but obviously that's a lot of false 80 00:02:55,599 --> 00:02:57,200 positives too 81 00:02:57,200 --> 00:03:00,159 that's uh a lot of um 82 00:03:00,159 --> 00:03:02,159 false confessions even that that come 83 00:03:02,159 --> 00:03:04,319 out of polygraphs so i've been playing 84 00:03:04,319 --> 00:03:05,840 around with a lot of computer vision 85 00:03:05,840 --> 00:03:08,480 things like the pants filter recently 86 00:03:08,480 --> 00:03:10,640 and i wanted to see if i could build my 87 00:03:10,640 --> 00:03:12,959 own tool that would be less invasive 88 00:03:12,959 --> 00:03:15,360 less obvious and most important for 89 00:03:15,360 --> 00:03:18,080 today's world would be remote friendly 90 00:03:18,080 --> 00:03:19,680 so 91 00:03:19,680 --> 00:03:22,319 i built this and it works on 92 00:03:22,319 --> 00:03:23,840 both screen 93 00:03:23,840 --> 00:03:27,040 dimensions live input devices webcams 94 00:03:27,040 --> 00:03:29,519 and video recordings 95 00:03:29,519 --> 00:03:31,599 so spoiler alert i got to run it on 96 00:03:31,599 --> 00:03:34,080 friends and co-workers and celebrities 97 00:03:34,080 --> 00:03:36,400 and politicians and found out lots of 98 00:03:36,400 --> 00:03:38,080 interesting things here 99 00:03:38,080 --> 00:03:41,280 so this is me and a group of friends 100 00:03:41,280 --> 00:03:43,519 in terms of the ethics again i got my 101 00:03:43,519 --> 00:03:45,519 friend's permission to run this first 102 00:03:45,519 --> 00:03:47,360 and to share his face i didn't for the 103 00:03:47,360 --> 00:03:48,879 others so they're all censored out 104 00:03:48,879 --> 00:03:51,040 otherwise but we're playing our own 105 00:03:51,040 --> 00:03:52,959 version of two truths and a lie 106 00:03:52,959 --> 00:03:55,439 the remote friendly pandemic version but 107 00:03:55,439 --> 00:03:57,680 this could just as easily be 108 00:03:57,680 --> 00:03:59,840 co-workers a meeting with co-workers 109 00:03:59,840 --> 00:04:01,680 you've never met or a remote interview 110 00:04:01,680 --> 00:04:04,000 or something a little more serious 111 00:04:04,000 --> 00:04:06,239 and these days we we interface through 112 00:04:06,239 --> 00:04:08,959 cameras we interface through screens and 113 00:04:08,959 --> 00:04:10,959 we miss out on a lot of that 114 00:04:10,959 --> 00:04:12,799 face-to-face interaction it can be tough 115 00:04:12,799 --> 00:04:14,959 to tell how the other person is feeling 116 00:04:14,959 --> 00:04:16,639 on the other side 117 00:04:16,639 --> 00:04:17,918 and so 118 00:04:17,918 --> 00:04:19,199 as far as social engineering is 119 00:04:19,199 --> 00:04:20,798 concerned we miss out on a lot of the 120 00:04:20,798 --> 00:04:23,199 strategy as well 121 00:04:23,199 --> 00:04:25,600 but video can give us 122 00:04:25,600 --> 00:04:27,600 an unexpected amount of new information 123 00:04:27,600 --> 00:04:29,680 so i'll explain what's going on with 124 00:04:29,680 --> 00:04:31,759 these uh the text and the clown face and 125 00:04:31,759 --> 00:04:33,759 everything in a minute but this is just 126 00:04:33,759 --> 00:04:35,360 a little bit of python code and computer 127 00:04:35,360 --> 00:04:37,840 vision here we can see my friend's heart 128 00:04:37,840 --> 00:04:40,160 rate is increasing 129 00:04:40,160 --> 00:04:42,160 we can see signs of deception that i was 130 00:04:42,160 --> 00:04:44,720 able to pick up on automatically using 131 00:04:44,720 --> 00:04:47,280 an early prototype of trucer 132 00:04:47,280 --> 00:04:48,880 to pick up on 133 00:04:48,880 --> 00:04:51,520 his lie in the moment automatically 134 00:04:51,520 --> 00:04:52,240 so 135 00:04:52,240 --> 00:04:53,840 this was just an early prototype but i 136 00:04:53,840 --> 00:04:55,759 wanted to use it in the wild on 137 00:04:55,759 --> 00:04:57,199 well-known sources things like 138 00:04:57,199 --> 00:04:59,360 congressional testimony to answer the 139 00:04:59,360 --> 00:05:02,800 burning questions we all have such as 140 00:05:02,800 --> 00:05:06,960 is mark zuckerberg a lizard person 141 00:05:09,600 --> 00:05:11,199 so just a little bit of code this is all 142 00:05:11,199 --> 00:05:14,000 python i used opencv it's a very common 143 00:05:14,000 --> 00:05:15,840 library for computer vision it's 144 00:05:15,840 --> 00:05:19,440 fantastic very powerful i used fer this 145 00:05:19,440 --> 00:05:21,440 there are a lot of different 146 00:05:21,440 --> 00:05:23,360 mood recognition libraries that are 147 00:05:23,360 --> 00:05:24,880 pre-trained 148 00:05:24,880 --> 00:05:26,720 this one's a little bit tangential to 149 00:05:26,720 --> 00:05:28,639 most of the the effort that we're using 150 00:05:28,639 --> 00:05:30,000 here 151 00:05:30,000 --> 00:05:32,000 but better than building your own 152 00:05:32,000 --> 00:05:34,080 most importantly i used media pipe this 153 00:05:34,080 --> 00:05:36,479 is a really important set of 154 00:05:36,479 --> 00:05:39,120 powerful set of tools from google 155 00:05:39,120 --> 00:05:41,120 that are most commonly used for video 156 00:05:41,120 --> 00:05:45,759 filters for augmented reality so for 157 00:05:45,759 --> 00:05:48,080 things like you know snapchat filters 158 00:05:48,080 --> 00:05:50,000 essentially and you can see on this this 159 00:05:50,000 --> 00:05:52,479 girl all of the points on her face 160 00:05:52,479 --> 00:05:54,000 those are what are called landmarks so 161 00:05:54,000 --> 00:05:56,240 it's tracking hundreds of landmarks on a 162 00:05:56,240 --> 00:05:58,639 face and you can then do relative math 163 00:05:58,639 --> 00:06:00,639 to figure out the relative positions of 164 00:06:00,639 --> 00:06:03,280 the face and the the facial structure 165 00:06:03,280 --> 00:06:05,440 relative to how it was 166 00:06:05,440 --> 00:06:08,400 to find out some interesting data 167 00:06:08,400 --> 00:06:10,160 so let's dive into this i started with 168 00:06:10,160 --> 00:06:11,360 heart rate 169 00:06:11,360 --> 00:06:12,720 this is one of the more in depth so 170 00:06:12,720 --> 00:06:14,080 we'll start with it but it's also one of 171 00:06:14,080 --> 00:06:15,840 the easiest to measure because i can 172 00:06:15,840 --> 00:06:18,000 test it on myself it's harder to deceive 173 00:06:18,000 --> 00:06:21,919 myself in real time but we see a pulse 174 00:06:21,919 --> 00:06:26,400 oximeter over here can i do a pointer 175 00:06:26,400 --> 00:06:27,840 oh there we go i don't know if you can 176 00:06:27,840 --> 00:06:30,240 see that pointer but we've got this uh 177 00:06:30,240 --> 00:06:32,400 76 beats per minute that are matching 178 00:06:32,400 --> 00:06:35,840 pretty well to the trusairs found 74 179 00:06:35,840 --> 00:06:38,639 out of 13 recent peaks 180 00:06:38,639 --> 00:06:41,680 that what is actually measuring here you 181 00:06:41,680 --> 00:06:44,240 can see these little squares 182 00:06:44,240 --> 00:06:46,720 that are drawn by these these blue dots 183 00:06:46,720 --> 00:06:48,560 so it's looking at 184 00:06:48,560 --> 00:06:51,360 the red and green colors obviously the 185 00:06:51,360 --> 00:06:53,520 the three primary colors are red green 186 00:06:53,520 --> 00:06:55,919 and blue uh blue channels noisy so we 187 00:06:55,919 --> 00:06:58,160 take that out but the intensity of red 188 00:06:58,160 --> 00:07:00,160 and green color in my cheeks 189 00:07:00,160 --> 00:07:02,400 and it turns out a webcam can actually 190 00:07:02,400 --> 00:07:03,680 pick up 191 00:07:03,680 --> 00:07:06,240 blood rushing through your face if you 192 00:07:06,240 --> 00:07:09,120 have well-lit light enough skin 193 00:07:09,120 --> 00:07:12,560 uh enough stable uh image 194 00:07:12,560 --> 00:07:14,400 is going to see the blood rushing 195 00:07:14,400 --> 00:07:16,720 through my face with each beat 196 00:07:16,720 --> 00:07:18,319 and so we see that little chart down 197 00:07:18,319 --> 00:07:19,199 there 198 00:07:19,199 --> 00:07:21,919 we can then do the conversion of 199 00:07:21,919 --> 00:07:23,520 frames per second to beats per minute 200 00:07:23,520 --> 00:07:25,680 and so forth figure out 201 00:07:25,680 --> 00:07:27,919 what that heart rate looks like i'm not 202 00:07:27,919 --> 00:07:29,680 the first to come up with this idea a 203 00:07:29,680 --> 00:07:31,520 lot of folks have used the forehead on 204 00:07:31,520 --> 00:07:33,360 themselves but if you don't have a huge 205 00:07:33,360 --> 00:07:35,680 forehead like me that's more likely to 206 00:07:35,680 --> 00:07:37,520 be hidden by hair or a hat or something 207 00:07:37,520 --> 00:07:40,319 so the cheeks were the the best bet for 208 00:07:40,319 --> 00:07:42,400 us here so here's an example of that 209 00:07:42,400 --> 00:07:44,879 chart this is not an ekg 210 00:07:44,879 --> 00:07:46,960 this is essentially saying total red and 211 00:07:46,960 --> 00:07:49,599 green colors zero to 255 each 212 00:07:49,599 --> 00:07:51,680 and we're looking for color intensity 213 00:07:51,680 --> 00:07:53,599 finding local peaks i did a bunch of 214 00:07:53,599 --> 00:07:55,199 crazy math for a week and then i found 215 00:07:55,199 --> 00:07:57,919 that scipy had a function literally 216 00:07:57,919 --> 00:07:59,599 called find peaks 217 00:07:59,599 --> 00:08:00,720 and 218 00:08:00,720 --> 00:08:02,800 tune the attributes there and it does a 219 00:08:02,800 --> 00:08:04,080 pretty good job with each of those 220 00:08:04,080 --> 00:08:05,919 little red check marks it's finding 221 00:08:05,919 --> 00:08:08,160 local maxima 222 00:08:08,160 --> 00:08:09,680 it's not perfect but it's good enough 223 00:08:09,680 --> 00:08:11,599 over average and you'll see that big 224 00:08:11,599 --> 00:08:13,599 drop that's typically from change in 225 00:08:13,599 --> 00:08:16,000 lighting or change in posture if someone 226 00:08:16,000 --> 00:08:17,520 turns away 227 00:08:17,520 --> 00:08:19,440 or if it's a recording there might be a 228 00:08:19,440 --> 00:08:21,759 cut zoom or something like that but if 229 00:08:21,759 --> 00:08:24,319 those aren't too frequent then 230 00:08:24,319 --> 00:08:26,080 they don't cause too much problem in 231 00:08:26,080 --> 00:08:29,520 finding these local maxima 232 00:08:30,000 --> 00:08:31,919 but first we have to find a face and 233 00:08:31,919 --> 00:08:34,880 that turned out to be somewhat difficult 234 00:08:34,880 --> 00:08:35,839 um 235 00:08:35,839 --> 00:08:37,599 i was running this on on zuck's 236 00:08:37,599 --> 00:08:39,120 congressional testimony and it kept 237 00:08:39,120 --> 00:08:41,200 identifying the wrong 238 00:08:41,200 --> 00:08:42,958 face as the most likely human in the 239 00:08:42,958 --> 00:08:43,839 frame 240 00:08:43,839 --> 00:08:45,360 so 241 00:08:45,360 --> 00:08:47,839 i kept having to increase the sensor 242 00:08:47,839 --> 00:08:49,760 bars and basically censor out everyone 243 00:08:49,760 --> 00:08:51,839 around him until i i finally got the 244 00:08:51,839 --> 00:08:54,640 algorithm to give in 245 00:08:54,640 --> 00:08:55,760 you'll see 246 00:08:55,760 --> 00:08:58,000 this truth and deceit bar up at the top 247 00:08:58,000 --> 00:09:01,040 is the first time we've seen this 248 00:09:01,040 --> 00:09:03,360 so what we're looking at for deception 249 00:09:03,360 --> 00:09:05,680 is essentially a rolling meter where 250 00:09:05,680 --> 00:09:07,279 truth is our baseline we assume 251 00:09:07,279 --> 00:09:09,200 someone's telling the truth we get more 252 00:09:09,200 --> 00:09:11,200 and more signals moving over to the red 253 00:09:11,200 --> 00:09:12,480 to the right 254 00:09:12,480 --> 00:09:14,880 that there might be something unusual 255 00:09:14,880 --> 00:09:16,800 happening here and then what might that 256 00:09:16,800 --> 00:09:17,600 be 257 00:09:17,600 --> 00:09:18,880 so 258 00:09:18,880 --> 00:09:21,040 there's a lot of pseudoscience here but 259 00:09:21,040 --> 00:09:22,560 there's also a lot of really well 260 00:09:22,560 --> 00:09:24,399 researched science and i have tons of 261 00:09:24,399 --> 00:09:26,640 references at the end of this slide the 262 00:09:26,640 --> 00:09:29,200 the slide deck it will be posted on the 263 00:09:29,200 --> 00:09:32,160 github as well as on sc.community 264 00:09:32,160 --> 00:09:33,519 so you can read up on all of these 265 00:09:33,519 --> 00:09:36,800 studies i tried to keep with things that 266 00:09:36,800 --> 00:09:39,279 we could measure decently well and had 267 00:09:39,279 --> 00:09:41,200 some scientific basis 268 00:09:41,200 --> 00:09:42,800 and so what what these are are 269 00:09:42,800 --> 00:09:46,480 deviations from that person's baseline 270 00:09:46,480 --> 00:09:49,760 if someone blinks a whole lot 271 00:09:49,760 --> 00:09:51,440 that's not really that interesting 272 00:09:51,440 --> 00:09:52,880 likewise with you know if we're looking 273 00:09:52,880 --> 00:09:55,279 at change in heart rate um 274 00:09:55,279 --> 00:09:57,519 if your heart rate is already at 100 no 275 00:09:57,519 --> 00:09:59,360 matter what that's not that interesting 276 00:09:59,360 --> 00:10:02,000 if it goes up to 120 may be interesting 277 00:10:02,000 --> 00:10:04,079 as in signal now so we're looking at 278 00:10:04,079 --> 00:10:06,959 heart rate blink rate uh average gaze 279 00:10:06,959 --> 00:10:08,720 direction so if you're looking somewhere 280 00:10:08,720 --> 00:10:10,800 new that you haven't been recently 281 00:10:10,800 --> 00:10:13,440 uh lip compression as we're seeing on on 282 00:10:13,440 --> 00:10:15,680 anthony weiner over here or sucking in 283 00:10:15,680 --> 00:10:17,760 your lips is a really common one or your 284 00:10:17,760 --> 00:10:20,000 hand covering your face if you've seen a 285 00:10:20,000 --> 00:10:21,519 little kid tell a really bad lie and 286 00:10:21,519 --> 00:10:23,279 then they go oops 287 00:10:23,279 --> 00:10:25,120 we keep doing that through adulthood we 288 00:10:25,120 --> 00:10:26,720 just get slightly better at it and we do 289 00:10:26,720 --> 00:10:28,800 these grooming gestures and 290 00:10:28,800 --> 00:10:30,480 still want to cover it up a little bit 291 00:10:30,480 --> 00:10:31,680 more 292 00:10:31,680 --> 00:10:32,880 and 293 00:10:32,880 --> 00:10:35,279 any single one of these 294 00:10:35,279 --> 00:10:36,959 is just noise 295 00:10:36,959 --> 00:10:38,399 so what we're really looking for are 296 00:10:38,399 --> 00:10:41,360 clusters of multiple possible signals at 297 00:10:41,360 --> 00:10:42,320 once 298 00:10:42,320 --> 00:10:44,079 this is spidey 299 00:10:44,079 --> 00:10:46,399 he's a magician and mentalist he's also 300 00:10:46,399 --> 00:10:48,160 got a wonderful channel called the 301 00:10:48,160 --> 00:10:50,240 behavioral art on youtube that i highly 302 00:10:50,240 --> 00:10:51,279 recommend 303 00:10:51,279 --> 00:10:53,839 he does a bunch of analysis of possible 304 00:10:53,839 --> 00:10:55,600 deception and breaks it down and shows 305 00:10:55,600 --> 00:10:58,079 you what he's looking at so i used a lot 306 00:10:58,079 --> 00:11:01,600 of his subjects to test trusayer against 307 00:11:01,600 --> 00:11:04,000 but again you know frequent blinking is 308 00:11:04,000 --> 00:11:05,760 a common sign of deception if i'm a 309 00:11:05,760 --> 00:11:08,480 frequent blinker though the opposite if 310 00:11:08,480 --> 00:11:10,959 i suddenly stop blinking entirely 311 00:11:10,959 --> 00:11:12,720 might suggest something new is what this 312 00:11:12,720 --> 00:11:15,360 is happening there but if i just start 313 00:11:15,360 --> 00:11:17,360 or stop blinking there could be a lot of 314 00:11:17,360 --> 00:11:19,360 reasons for that so we're looking for 315 00:11:19,360 --> 00:11:22,000 many signals within a short time frame 316 00:11:22,000 --> 00:11:23,360 that something interesting might be 317 00:11:23,360 --> 00:11:25,839 happening here 318 00:11:25,839 --> 00:11:27,920 i mentioned mood as well 319 00:11:27,920 --> 00:11:29,120 using 320 00:11:29,120 --> 00:11:31,360 fer is the the python library in 321 00:11:31,360 --> 00:11:33,279 particular that i chose 322 00:11:33,279 --> 00:11:35,360 it's noisy it doesn't do as well as an 323 00:11:35,360 --> 00:11:36,959 average human might 324 00:11:36,959 --> 00:11:39,040 i would say for for just identifying 325 00:11:39,040 --> 00:11:41,279 individual moods of people but it's 326 00:11:41,279 --> 00:11:44,320 still really useful for noticing changes 327 00:11:44,320 --> 00:11:46,480 in moods especially frequent 328 00:11:46,480 --> 00:11:49,200 and quick changes in moods 329 00:11:49,200 --> 00:11:51,920 micro expressions are an entire separate 330 00:11:51,920 --> 00:11:54,639 talk and subject of their own but 331 00:11:54,639 --> 00:11:57,440 essentially this is momentary reactions 332 00:11:57,440 --> 00:11:59,120 these are involuntary moods that come 333 00:11:59,120 --> 00:12:01,440 across a face and it's universal to all 334 00:12:01,440 --> 00:12:02,480 humans 335 00:12:02,480 --> 00:12:04,959 where you might get that expressed just 336 00:12:04,959 --> 00:12:08,240 as a moment before you have some sort of 337 00:12:08,240 --> 00:12:11,040 more consciously put forward reaction so 338 00:12:11,040 --> 00:12:13,120 we're seeing here on the the top right 339 00:12:13,120 --> 00:12:15,519 of each of these frames neutral fear and 340 00:12:15,519 --> 00:12:17,440 happy might be something interesting 341 00:12:17,440 --> 00:12:19,120 there so if we're seeing lots of 342 00:12:19,120 --> 00:12:21,360 frequently changing moods or one that 343 00:12:21,360 --> 00:12:23,360 transfers from one to another quickly 344 00:12:23,360 --> 00:12:24,720 could be interesting 345 00:12:24,720 --> 00:12:27,600 um fur does not account for a person's 346 00:12:27,600 --> 00:12:29,680 baseline so 347 00:12:29,680 --> 00:12:31,120 unlike the rest of this you know if you 348 00:12:31,120 --> 00:12:33,519 have a resting [ __ ] face then that will 349 00:12:33,519 --> 00:12:36,000 just say you're angry all the time 350 00:12:36,000 --> 00:12:37,279 i might just say 351 00:12:37,279 --> 00:12:39,120 it's kind of harsh to use on yourself 352 00:12:39,120 --> 00:12:43,200 and you turn it on it's just you're sad 353 00:12:43,839 --> 00:12:44,800 but 354 00:12:44,800 --> 00:12:46,320 in general it's helpful in terms of the 355 00:12:46,320 --> 00:12:48,639 changes that it shows 356 00:12:48,639 --> 00:12:51,120 all right next slide spoiler alert for 357 00:12:51,120 --> 00:12:53,120 the last spider-man movie i think it's 358 00:12:53,120 --> 00:12:55,120 been out for like six months so 359 00:12:55,120 --> 00:12:56,880 it's fine but you know if you care about 360 00:12:56,880 --> 00:12:58,800 such things plug your ears turn around 361 00:12:58,800 --> 00:13:00,000 someone will tap you on the shoulder in 362 00:13:00,000 --> 00:13:02,000 two minutes 363 00:13:02,000 --> 00:13:05,519 this is andrew garfield an actor who was 364 00:13:05,519 --> 00:13:08,399 widely rumored to play spider-man or or 365 00:13:08,399 --> 00:13:11,040 be involved in the the last film denied 366 00:13:11,040 --> 00:13:13,760 involvement he had lots of interviews um 367 00:13:13,760 --> 00:13:15,760 this is a wired interview he gave where 368 00:13:15,760 --> 00:13:18,000 he answered lots of google auto complete 369 00:13:18,000 --> 00:13:19,200 questions 370 00:13:19,200 --> 00:13:21,600 and we could see trusair picking up on a 371 00:13:21,600 --> 00:13:24,399 number of tells for one single question 372 00:13:24,399 --> 00:13:26,320 out of the interview which was 373 00:13:26,320 --> 00:13:28,720 about him being in the next movie 374 00:13:28,720 --> 00:13:31,600 um i'm going to try 375 00:13:31,600 --> 00:13:33,600 this is kind of like 376 00:13:33,600 --> 00:13:35,279 demo gods here 377 00:13:35,279 --> 00:13:37,279 i'm going to try to play 378 00:13:37,279 --> 00:13:39,040 an analyze clip here and i'm sorry i 379 00:13:39,040 --> 00:13:41,440 don't have more of these 380 00:13:41,440 --> 00:13:43,920 but this turns out to be very tricky to 381 00:13:43,920 --> 00:13:44,959 do 382 00:13:44,959 --> 00:13:46,720 across two screens 383 00:13:46,720 --> 00:13:49,839 there we go 384 00:13:51,040 --> 00:13:51,920 so 385 00:13:51,920 --> 00:13:53,440 just some pretext this is a youtube 386 00:13:53,440 --> 00:13:55,199 video so it'll go very fast it has lots 387 00:13:55,199 --> 00:13:57,120 of jump cuts which are not ideal for 388 00:13:57,120 --> 00:14:00,399 analysis so the the text shown by 389 00:14:00,399 --> 00:14:02,079 trusair on the tops will be a little 390 00:14:02,079 --> 00:14:04,240 jerky but i want you to listen to what 391 00:14:04,240 --> 00:14:06,560 he says if you can i hope and look at 392 00:14:06,560 --> 00:14:08,880 the truth meter up here 393 00:14:08,880 --> 00:14:10,560 and again we're starting from baseline 394 00:14:10,560 --> 00:14:11,839 truth to more and more signs of 395 00:14:11,839 --> 00:14:13,120 deception 396 00:14:13,120 --> 00:14:15,839 is andrew garfield uptown funk i wish 397 00:14:15,839 --> 00:14:17,920 sandra garfield playing spider-man again 398 00:14:17,920 --> 00:14:20,959 yeah oh you almost got me no no no i'm 399 00:14:20,959 --> 00:14:23,120 not i'm not i'm not 400 00:14:23,120 --> 00:14:25,839 crying out loud 401 00:14:25,839 --> 00:14:27,120 but i'm excited to see what they're 402 00:14:27,120 --> 00:14:28,399 going to do with the next movie because 403 00:14:28,399 --> 00:14:30,000 i i just love him 404 00:14:30,000 --> 00:14:32,000 is andrew go for the live what do you 405 00:14:32,000 --> 00:14:33,760 think what are you seeing 406 00:14:33,760 --> 00:14:38,079 is andrew go okay we see a lot andrew 407 00:14:39,120 --> 00:14:41,440 oh boy you have to drag this back to 408 00:14:41,440 --> 00:14:43,519 present it i'm sorry 409 00:14:43,519 --> 00:14:45,279 where'd my mouse go everyone's watching 410 00:14:45,279 --> 00:14:47,600 it and i can't see it okay 411 00:14:47,600 --> 00:14:50,079 there we go 412 00:14:51,199 --> 00:14:53,199 so we could see that face covering that 413 00:14:53,199 --> 00:14:55,360 lip compression uh the heart rate it was 414 00:14:55,360 --> 00:14:58,160 only two possible peaks shown so 415 00:14:58,160 --> 00:14:59,519 probably 416 00:14:59,519 --> 00:15:01,360 yeah i'm getting it up don't worry don't 417 00:15:01,360 --> 00:15:03,120 worry 418 00:15:03,120 --> 00:15:06,639 here he is he's back 419 00:15:07,360 --> 00:15:09,360 but we could see all of that and when 420 00:15:09,360 --> 00:15:10,959 you know you're looking for it it's a 421 00:15:10,959 --> 00:15:13,519 little more obvious you know a 422 00:15:13,519 --> 00:15:15,760 trained detector of such things could 423 00:15:15,760 --> 00:15:17,680 probably 424 00:15:17,680 --> 00:15:19,760 analyze it and figure that out 425 00:15:19,760 --> 00:15:21,040 um 426 00:15:21,040 --> 00:15:22,000 but true 427 00:15:22,000 --> 00:15:23,920 sayer makes it very obvious 428 00:15:23,920 --> 00:15:26,399 automatically there 429 00:15:26,399 --> 00:15:30,079 squeaky squeaky okay 430 00:15:30,639 --> 00:15:32,959 all right if you have anybody covering 431 00:15:32,959 --> 00:15:34,480 their ears turned around in a ball you 432 00:15:34,480 --> 00:15:35,920 can tap them on the shoulder and let 433 00:15:35,920 --> 00:15:38,720 them know to rejoin society now 434 00:15:38,720 --> 00:15:41,839 a couple places this didn't work out 435 00:15:41,839 --> 00:15:44,000 professional poker players 436 00:15:44,000 --> 00:15:45,519 turns out they have really good poker 437 00:15:45,519 --> 00:15:48,240 faces they mostly cover them up a lot uh 438 00:15:48,240 --> 00:15:48,959 so 439 00:15:48,959 --> 00:15:51,519 i tried this on the uh the world poker 440 00:15:51,519 --> 00:15:54,240 tour and to no avail they do a really 441 00:15:54,240 --> 00:15:57,040 good job of mostly entirely covering up 442 00:15:57,040 --> 00:15:59,279 so you know don't go using this on your 443 00:15:59,279 --> 00:16:02,560 uh augment reality glasses downstairs 444 00:16:02,560 --> 00:16:04,480 um unfortunately likewise with 445 00:16:04,480 --> 00:16:06,399 politicians um 446 00:16:06,399 --> 00:16:08,160 they tend it's really hard to find good 447 00:16:08,160 --> 00:16:10,880 videos to analyze they tend to stick to 448 00:16:10,880 --> 00:16:12,959 pre-scripted rehearsed talking points 449 00:16:12,959 --> 00:16:14,000 and so 450 00:16:14,000 --> 00:16:15,519 you know even if you catch them in an 451 00:16:15,519 --> 00:16:17,759 obvious lie it's it's tough to catch 452 00:16:17,759 --> 00:16:20,800 unplanned reactions there 453 00:16:20,800 --> 00:16:23,120 but uh but back to zuck uh i did 454 00:16:23,120 --> 00:16:26,079 eventually find a normal heart rate 455 00:16:26,079 --> 00:16:28,480 um and and zero signs of deception 456 00:16:28,480 --> 00:16:30,480 during his congressional testimony but 457 00:16:30,480 --> 00:16:32,240 to be honest he didn't really have to 458 00:16:32,240 --> 00:16:33,120 lie 459 00:16:33,120 --> 00:16:35,199 because he uh 460 00:16:35,199 --> 00:16:37,040 the questions were really terrible he 461 00:16:37,040 --> 00:16:38,000 was 462 00:16:38,000 --> 00:16:39,839 spent most of 10 hours explaining how 463 00:16:39,839 --> 00:16:41,279 the internet works to a bunch of 464 00:16:41,279 --> 00:16:44,480 oxygenarians these are cookies we sell 465 00:16:44,480 --> 00:16:46,000 ads 466 00:16:46,000 --> 00:16:48,320 but his um 467 00:16:48,320 --> 00:16:49,839 his meeting with the eu is a different 468 00:16:49,839 --> 00:16:51,680 story i'm not going to take another two 469 00:16:51,680 --> 00:16:53,199 minutes switching back and forth and 470 00:16:53,199 --> 00:16:54,240 such but 471 00:16:54,240 --> 00:16:56,480 um there's a moment when he's awkwardly 472 00:16:56,480 --> 00:16:59,199 dodging questions about shadow profiles 473 00:16:59,199 --> 00:17:01,680 and troussair picks up the classic lip 474 00:17:01,680 --> 00:17:03,920 compression it picks up the turning gaze 475 00:17:03,920 --> 00:17:06,480 away in fact he turns away so far that 476 00:17:06,480 --> 00:17:08,480 it stops tracking his face eventually 477 00:17:08,480 --> 00:17:10,319 after a little while because he's trying 478 00:17:10,319 --> 00:17:13,119 to get away from this situation 479 00:17:13,119 --> 00:17:15,599 here's another quick still of angry zuck 480 00:17:15,599 --> 00:17:17,599 with the lip compression just really 481 00:17:17,599 --> 00:17:20,879 didn't want to answer that question 482 00:17:21,199 --> 00:17:22,400 all right so 483 00:17:22,400 --> 00:17:23,919 some potential uses this is not a 484 00:17:23,919 --> 00:17:26,079 scientific study i i don't recommend 485 00:17:26,079 --> 00:17:27,359 that you go 486 00:17:27,359 --> 00:17:29,200 run this in every zoom call that you 487 00:17:29,200 --> 00:17:30,080 have 488 00:17:30,080 --> 00:17:32,240 you know much like polygraphs it's prone 489 00:17:32,240 --> 00:17:34,160 to false positive it's prone to 490 00:17:34,160 --> 00:17:36,160 misinterpretation but i think it's 491 00:17:36,160 --> 00:17:37,679 important to 492 00:17:37,679 --> 00:17:40,400 openly explore what could be possible 493 00:17:40,400 --> 00:17:43,200 um so in terms of social engineering 494 00:17:43,200 --> 00:17:44,880 video based phishing calls are on the 495 00:17:44,880 --> 00:17:47,919 rise with remote work especially with a 496 00:17:47,919 --> 00:17:50,880 recent increase in video deep fakes you 497 00:17:50,880 --> 00:17:52,000 could imagine 498 00:17:52,000 --> 00:17:54,080 more properly mirroring and 499 00:17:54,080 --> 00:17:56,480 approximating someone you're attempting 500 00:17:56,480 --> 00:17:58,160 to impersonate 501 00:17:58,160 --> 00:18:00,160 or analyzing your target and finding out 502 00:18:00,160 --> 00:18:02,000 a little bit more using something like 503 00:18:02,000 --> 00:18:03,520 trusair 504 00:18:03,520 --> 00:18:05,360 as we saw in some talks here yesterday 505 00:18:05,360 --> 00:18:07,280 if this can be applied in professional 506 00:18:07,280 --> 00:18:08,400 essay 507 00:18:08,400 --> 00:18:10,480 probably applies to the rest of life too 508 00:18:10,480 --> 00:18:12,640 so in the workplace in negotiations and 509 00:18:12,640 --> 00:18:14,240 interviews you might get a little bit of 510 00:18:14,240 --> 00:18:16,640 an information edge or imagine online 511 00:18:16,640 --> 00:18:18,160 dating where you can find out when 512 00:18:18,160 --> 00:18:20,160 someone's heart is racing in real time 513 00:18:20,160 --> 00:18:22,400 and there might be a connection there 514 00:18:22,400 --> 00:18:24,640 or something else who knows 515 00:18:24,640 --> 00:18:26,080 and uh 516 00:18:26,080 --> 00:18:30,640 on the the more internal side a one on 517 00:18:30,640 --> 00:18:32,320 not one-on-one but sort of a 518 00:18:32,320 --> 00:18:34,160 self-reflection tool 519 00:18:34,160 --> 00:18:36,799 for therapy or guided meditation 520 00:18:36,799 --> 00:18:39,280 or even just a tool to stop putting my 521 00:18:39,280 --> 00:18:41,760 hands on my face you know i could could 522 00:18:41,760 --> 00:18:44,480 use that as uh some sort of feedback 523 00:18:44,480 --> 00:18:46,640 loop that gives you more information 524 00:18:46,640 --> 00:18:48,480 or even as an autism aide and i'm not 525 00:18:48,480 --> 00:18:49,600 the first to think of something like 526 00:18:49,600 --> 00:18:50,799 this either 527 00:18:50,799 --> 00:18:53,280 google glass has a project going that 528 00:18:53,280 --> 00:18:55,039 helps children who have trouble with 529 00:18:55,039 --> 00:18:57,440 such things reading facial expressions 530 00:18:57,440 --> 00:18:59,760 by getting real-time feedback 531 00:18:59,760 --> 00:19:02,240 from the system analyzing the face as 532 00:19:02,240 --> 00:19:04,480 well 533 00:19:05,039 --> 00:19:06,799 now part of this tagline was becoming 534 00:19:06,799 --> 00:19:08,960 irresistible i think knowledge is power 535 00:19:08,960 --> 00:19:10,559 and what you do with this you can 536 00:19:10,559 --> 00:19:12,320 already gain an 537 00:19:12,320 --> 00:19:14,480 interesting edge there but another 538 00:19:14,480 --> 00:19:17,280 potential use is in mirroring um so this 539 00:19:17,280 --> 00:19:19,280 is a work in progress but 540 00:19:19,280 --> 00:19:21,919 truesayer can take a second video feed 541 00:19:21,919 --> 00:19:24,160 and give you suggestions to better 542 00:19:24,160 --> 00:19:26,559 mirror your conversation partner or two 543 00:19:26,559 --> 00:19:28,640 identified faces so we see a few 544 00:19:28,640 --> 00:19:30,880 examples of uh obama is a very frequent 545 00:19:30,880 --> 00:19:33,919 applier of mirroring um and as can be 546 00:19:33,919 --> 00:19:35,440 seen here in three very different 547 00:19:35,440 --> 00:19:38,240 conversations uh the the quick idea is a 548 00:19:38,240 --> 00:19:39,840 way to build rapport 549 00:19:39,840 --> 00:19:40,720 through 550 00:19:40,720 --> 00:19:42,559 uh subtle imitation whether that's 551 00:19:42,559 --> 00:19:44,240 conscious or otherwise it can definitely 552 00:19:44,240 --> 00:19:44,960 be 553 00:19:44,960 --> 00:19:46,320 overused 554 00:19:46,320 --> 00:19:49,039 and awkward if overdone but very highly 555 00:19:49,039 --> 00:19:51,520 effective so even something as simple as 556 00:19:51,520 --> 00:19:53,520 being as close or as far from the camera 557 00:19:53,520 --> 00:19:55,360 as your conversation partner can be 558 00:19:55,360 --> 00:19:58,160 useful feedback for improving that that 559 00:19:58,160 --> 00:19:59,679 feel 560 00:19:59,679 --> 00:20:01,120 limitations 561 00:20:01,120 --> 00:20:03,039 there are lots video quality is the 562 00:20:03,039 --> 00:20:05,280 biggest one so if you're looking at 563 00:20:05,280 --> 00:20:08,960 a lot of standard depositions or 564 00:20:08,960 --> 00:20:10,400 interrogations that's just going to be 565 00:20:10,400 --> 00:20:12,240 very low video quality where you can't 566 00:20:12,240 --> 00:20:15,120 get a lot of the details there 567 00:20:15,120 --> 00:20:16,880 specifically well likewise with 568 00:20:16,880 --> 00:20:18,559 recordings if you get lots of jump cuts 569 00:20:18,559 --> 00:20:21,120 as you saw it might be a little jerky 570 00:20:21,120 --> 00:20:23,440 heart rate monitor specifically as i 571 00:20:23,440 --> 00:20:24,880 mentioned needs to see through the face 572 00:20:24,880 --> 00:20:26,640 so if you have a very dark skin tone or 573 00:20:26,640 --> 00:20:28,400 if you have lots of makeup on i tried 574 00:20:28,400 --> 00:20:30,880 this on some female celebrities and 575 00:20:30,880 --> 00:20:32,559 i couldn't see through their concealer 576 00:20:32,559 --> 00:20:35,679 to their actual face to measure a heart 577 00:20:35,679 --> 00:20:36,720 rate 578 00:20:36,720 --> 00:20:38,720 so lots of methods of evasion if you 579 00:20:38,720 --> 00:20:41,200 know or or suspect that might be 580 00:20:41,200 --> 00:20:42,799 happening 581 00:20:42,799 --> 00:20:44,880 which are mostly ways of more or less 582 00:20:44,880 --> 00:20:46,240 obviously 583 00:20:46,240 --> 00:20:48,960 hiding your face uh this could even be 584 00:20:48,960 --> 00:20:51,200 video filters uh heavily used video 585 00:20:51,200 --> 00:20:53,440 filters on zoom to smooth things out a 586 00:20:53,440 --> 00:20:55,679 bit uh or finally if you're a 587 00:20:55,679 --> 00:20:57,360 pathological liar 588 00:20:57,360 --> 00:20:59,200 there's nothing to detect there if you 589 00:20:59,200 --> 00:21:00,640 believe your lie in the moment that's 590 00:21:00,640 --> 00:21:02,400 the truth for you that's the truth for 591 00:21:02,400 --> 00:21:03,520 the system 592 00:21:03,520 --> 00:21:05,919 so uh a lot of 593 00:21:05,919 --> 00:21:08,159 ways to possibly avoid this but i think 594 00:21:08,159 --> 00:21:10,400 the power here is that no one really 595 00:21:10,400 --> 00:21:12,080 necessarily suspects that this is 596 00:21:12,080 --> 00:21:14,320 happening as an automatic measure on the 597 00:21:14,320 --> 00:21:17,840 other end so my code is out on github 598 00:21:17,840 --> 00:21:19,600 i'll include a link to the slides there 599 00:21:19,600 --> 00:21:21,039 as well 600 00:21:21,039 --> 00:21:23,760 and we'll post those out on sc.community 601 00:21:23,760 --> 00:21:25,760 video demo is not yet live i'm still 602 00:21:25,760 --> 00:21:29,440 processing some of those pieces but 603 00:21:29,440 --> 00:21:32,320 as as jc mentioned i've got the silly 604 00:21:32,320 --> 00:21:33,919 youtube channel which is pretty much an 605 00:21:33,919 --> 00:21:37,600 excuse for my own crazy side projects so 606 00:21:37,600 --> 00:21:39,520 uh most recently the face controlled 607 00:21:39,520 --> 00:21:41,679 keyboard which introduced me to media 608 00:21:41,679 --> 00:21:43,440 pipe in the first place 609 00:21:43,440 --> 00:21:46,159 and uh the pants filter and so you know 610 00:21:46,159 --> 00:21:49,679 people say solve your own problem 611 00:21:50,320 --> 00:21:51,840 but that was my interest in computer 612 00:21:51,840 --> 00:21:54,559 vision uh you you can imagine 613 00:21:54,559 --> 00:21:56,159 this might be less academic and more 614 00:21:56,159 --> 00:21:57,760 entertaining but it will include a few 615 00:21:57,760 --> 00:22:00,400 more analyzed videos and examples there 616 00:22:00,400 --> 00:22:01,840 so if you want to go subscribe that will 617 00:22:01,840 --> 00:22:04,720 be out probably by the end of the month 618 00:22:04,720 --> 00:22:06,320 all right and i've got a whole bunch of 619 00:22:06,320 --> 00:22:08,799 references out here might have time for 620 00:22:08,799 --> 00:22:11,200 questions i'm not sure but thank you so 621 00:22:11,200 --> 00:22:13,840 much for sticking around 622 00:22:14,710 --> 00:22:23,640 [Applause]