In April 2015, the film Fast & Furious 7 was released in theaters, a huge commercial success, which however could never have seen the light of day. Indeed, barely 2 months after the start of filming, in November 2013, a tragedy occurs. Paul Walker, one of the leading actors, is killed in a car accident.
The film crew is devastated, and it will take 5 months for filming to resume, with the aim of paying tribute to the deceased actor. The problem is that Paul Walker was far from having shot all his scenes. We then call on the special effects studio of Peter Jackson, Weta Digital and Paul's two brothers, Caleb and Cody, who look very much like him.
While the Walker brothers serve as stunt doubles for their brother's body, Paul's face is completely recreated in 3D, based on existing footage as well as scans of Caleb and Cody's faces and skin. A total of 350 shots will be shot. What the film crews have just accomplished is unmistakably similar to a technology that is currently exploding: the deepfake.
The deepfake, contraction of deep for deep-learning and fake for fake, and a technique of hyperfaking which is based on artificial intelligence. It consists in superimposing on an existing video or audio track, a new track created artificially. So where do deepfakes come from?
How do they work? And above all, what are the uses and misuses that are made of it? I am Gauthier Delplace, you are on Geospoil and, at the Quai des Savoirs in Toulouse, and today we are going to be interested in Deepfakes.
As you will have understood, deepfakes are a form of image manipulation. But we didn't wait for the advent of digital technology to start faking photos, for example. Take this image: it represents the American General Ulysses Grant at City Point, in 1864.
Except that it is not a photo, but a montage that was made in 1902 from 3 different shots. Another example is this photo of Lenin giving a speech in 1920. Nothing unusual at first sight, except that the photo is a little dark.
Well, it's because it has been retouched to remove, at the bottom of the image, Trotsky, who initially was an ally of Lenin, but who years later, under Stalin's regime, became an "enemy of the nation”. At the time when these two shots were retouched, no Photoshop to help us, even less artificial intelligence. No, you had to manipulate the photo directly, with gouache, charcoal or intervene during the development of the negatives, for example by discoloring certain parts of the image.
Today, things have changed a lot, and with a simple swipe of your finger you can retouch a photo very easily. Now, what about deepfakes? Well, as with many technologies, we will have to turn to the academic world to find the first traces of it.
In this case, we have to go back to 1997 with the Video Rewrite project, which then made it possible to create a video of a person pronouncing words that he did not pronounce in the original video, but in another file. sound. It is the first system to automate this process using machine learning.
Over the years, the technology develops and so do the applications. We can for example cite Face2Face, released in 2016, which allows you to modify the expression of a person's face on video, in reaction to those of another person, all that live. We can also mention, a year later, the Synthesizing Obama project, which makes it possible to modify a video of Obama to make him say any sentence from another of these speeches.
The technology works so well that it even works with imitators. We are therefore in 2017, and it is at the end of this year that deepfakes will really explode and leave the academic domain, especially on the Reddit network. The main reason for this success, I will present it to you a little later, but first let's see what deepfakes can be used for.
Beyond the humorous aspect; you may have already seen deepfakes with Tom Cruise, or Nicolas Cage; several fields of application are opening up for this new technology. First, and it was already one of Video Rewrite's objectives in 1997: dubbing. If you're more of the type to watch your films in VF, it must be said that in some cases, the lack of synchronization between the actor's lips and the dubbing voice can be a bit boring.
Here we can clearly see the interest of deepfakes: allowing greater immersion, even when we are not watching the film in its original version. But always with a concern for immersion, some films go much further. Welcome to Chechnya is a documentary released in 2020.
In this film shot in Chechnya, we follow a group of activists who work to fight, at the risk of their lives, against the anti-LGBTQ pogrom currently in place in this Russian republic. Throughout the documentary, we can see the faces of several activists and victims, which could cause them harm. But the director, David France, decided not to blur or hide these faces.
To leave them with all their humanity, he chose to replace them with deepfakes, from the faces of actors consenting to the project. Beyond technological prowess, deepfakes can therefore also take on an artistic dimension. To end on this point, I recommend that you take a look at two works.
First, the short film Un'emozione per semper 2. 0, by Joseph Ayerle, who used this technology to project a leading Italian actress of the 80s, Ornella Muti, into the present, superimposing her on the body of Kendall Jenner. Then, I invite you to discover the Zizi Show, by Jake Elwes, which is an interactive online cabaret, mixing drag performance, questioning of queer identities, and of course, deepfakes, from which all the bodies present are generated.
in the show. In the field of possibilities, we can therefore see that deepfakes have a bright future ahead of them. But now that I've told you about their history, and what they can be used for, let me explain how they are created.
As I told you at the beginning of the video, the "deep" of "deepfake" comes from deep learning, a form of artificial intelligence that is based on the use of neural networks, organized in different layers. So what does it look like? Let's take an example where we want to estimate the chances of it raining tomorrow.
That, the probability of rain, is the output layer, this is the result we are looking for. To achieve this result, we will provide our network with data, this is what we call inputs. Here it could be: temperature, air humidity, wind, and ambient pressure.
And well, between these two layers we will have hidden layers, which are made up of neurons, in fact mathematical functions, which have the objective, from the input data, of giving us the output result. And in the case of deep-learning, this whole process is done directly by the network, that is to say that it is he who seeks the best parameters to achieve the desired result. Now if I put a face as input, and I want to find it as output, what happens?
And then the network will cut the face into lots of small features, and each layer will create more and more complex structures by adding these small features, until arriving at the final face. Obviously, all this does not happen in one go. The network must learn to find the best characteristics to reconstruct a face: this is the learning phase.
Now, let's take a closer look at the network architecture in the case of deepfakes. Often, we use what is called an auto-encoder: it is a type of network in which we try at the output to reproduce what we put at the input. It's a very basic architecture, but it's still used a lot and is quite simple to explain.
In an auto-encoder you will have 2 parts: the encoder and the decoder, with between the two what is called the latent space. At first, the encoder will somehow compress our image. We will therefore obtain, in the latent space, a very simplified version of the face, with only the most essential characteristics.
Then, the decoder will decompress what can be called the latent face, to give it back details and try to return to the original face. Good there you are going to tell me, great, but it absolutely serves what you have just done. Well, that's because to make a deepfake we're going to use 2 different auto-encoders: one for the source face, and one for the target face.
And be careful, these 2 auto-encoders will not be completely independent since they will have the same encoder. Why ? Well, in this way, the same important characteristics will be carried over to the two latent spaces.
On the other hand, each network will have its own decoder. And there, we practically have our deepfake. Once the learning phase is over for the 2 networks, that is to say that decoder A allows us to correctly reconstruct face A and decoder B allows us to correctly reconstruct face B, we just have to invert decoders.
Look. Let's say I want to build face B from the expressions of face A. I'm going to take the latent space of face A, which therefore contains its most salient features BUT I'm going to apply decoder B to it, which taught it to reconstruct face B, and who can do it from any latent space.
So I get face B, but with the expressions of face A: so, a deepfake. Good. We have just seen how to create them.
We have previously seen the uses that could be made of it. But there is one aspect of deepfakes that I haven't touched on yet. This aspect is partly the reason for their explosion at the end of 2017, and in 2019 it represented 96% of all deepfakes posted online: pornographic deepfakes.
I've skipped that part so far, but that's why deepfakes exploded in popularity at the end of 2017 on Reddit. The principle, you have surely understood it: replace the face of an X actress with the face of a known personality, or not for that matter. And unfortunately, it is mainly women who are targeted.
Here is what actress Scarlett Johannson, affected by the phenomenon, said in an interview with the Washington Post at the end of 2018: Nothing can stop someone from cutting and pasting my image, or that of anyone , on another body, and make it look realistic. It doesn't affect me that much, because people assume it's not really me on the porn content. But I think it's a pointless quest from a legal standpoint, especially because the Internet is a vast, self-devouring vortex of darkness.
Obviously the situation is different for someone who loses his job because his image has been used in this way. Indeed, deepfakes can be used in the context of revenge porn, or pornodisclosure in French. It is a practice of broadcasting sexually explicit content involving a person, without that person's consent to broadcast it.
The goal is often to hurt, to humiliate, or even to blackmail. And with deepfakes, it's even possible to create this kind of content, even without an original sexually explicit video. Faced with the scale of the phenomenon, but above all with the potentially disastrous consequences that it can generate, Internet companies are making more and more efforts to limit the distribution of this content.
Unfortunately, not everyone plays the game and deepfakes continue to grow, including another genre in particular: political deepfakes. And yes, the advantage with women and politicians is that you can very easily find on the internet, dozens of hours of filmed interviews, well framed, well lit: perfect for training deepfake software . Recently, for example, a video showing Volodymyr Zelensky calling on his army to lay down their arms was broadcast on a Ukrainian television channel.
The video is a deepfake, quite poorly made by the way, but it managed to be broadcast after the channel in question was hacked. The danger is that with more time, and more means, political deepfakes become more and more realistic. Take for example this video, made by Buzzfeed on Barack Obama: it is a deepfake.
Here, the channel has teamed up with American actor Jordan Peele to carry out this trick, with an educational scope: that of warning the general public. So you see that deepfakes, although they are a very interesting tool, can become dangerous. To fight against malicious content, we must therefore develop solutions, and that's good, because it exists.
To start, we can work on the detection of deepfakes, and we will see that there are 2 approaches. The first is the direct approach, where we look for specific artefacts. And yes, because when you create a deepfake, it will inevitably leave even tiny traces on the video, which will be able to be identified more or less easily by an algorithm.
We can for example look at the fade: so basically the edges of the face inlaid on the original face. We can look at the environment: is there a lack of coherence between the foreground and the background, are the lights coherent? Behaviour: does the person on the video have the same facial expressions or expressions that they usually use?
In the same vein: physiology: there are algorithms, and it's pretty crazy, that are able to monitor heartbeats under the skin or blinking. And if they are irregular, it will detect it. We can also look at the synchronization between the sound and the lips: there are many deepfakes that do poorly on phonemes where the mouth is completely closed, such as for sounds in B, P or M.
And finally we can also look the image from a technical point of view: are there any jitters, frequency differences, flickering, things like that. Then, we have a broader, indirect approach, where we will not be satisfied with looking for a particular type of artefact, but rather watch the video as a whole. First we have the models by classification, who were trained and to whom we said “that's a deepfake” and “that's a normal video”.
And so once we deploy them, they themselves will try to classify the video to be analyzed according to what they have learned. And then we have the models that detect anomalies: they were trained with normal images, and so by seeing deepfakes they must be able to see the things that are wrong, so it could be anything in the list of artifacts that we have seen here. So all this is to detect already existing deepfakes, but we can also do prevention, to prevent them from being produced from the start.
For this, some authors propose to better trace the origin of multimedia files, for example by using blockchain-based systems. So the blockchain… No, I'm kidding. You can also do a counter-attack.
Basically we will voluntarily disturb our images so that they are not recognizable, and therefore unusable, by deepfake software. So there you say to yourself “yes, but hey, I don't really want to mess up my photos before posting them, otherwise there's no point”. Well the great thing is that with the naked eye it's imperceptible, look for example here, there is a modification that has been made, and I don't know about you but I can't tell the difference between both pictures.
In all this fight against deepfakes, and to help in the development of detection and prevention methods like those we have just seen, there are several databases. We can cite Google's DFD; DFDC, from Meta, or even Celeb-DF, from a group of Chinese and American researchers. In total there are tens of thousands of deefakes, identified as such, which can be used to train models to fight against the phenomenon.
We are currently in a veritable arms race. Detection software is improving, but so is the quality of deepfakes. After a while, creating an undetectable deepfake might become too tedious, but relying on that alone and developing counterattacks might not be enough, and result in further escalation of technology.
Anyway, deepfakes have not finished talking about them. In this video I only discussed deepfakes to replace a face, but they can also be used, often maliciously, for other applications: medical fraud, fake fingerprints, fake financial statements, etc. You may have even heard the story of a CEO who was scammed out of over $200,000 over the phone.
The culprit or culprits used a deepfake audio to reproduce the voice of a supervisor to ask him to make a transfer to a bank account. Finally, beyond the technological battle and misuse, keep in mind that a deepfake is just a technology. It's not good or bad, it all depends on what you do with it.
In any case, the more people there are who know about deepfakes, the more we will be able , collectively, to fight against their excesses. Also, if you liked this video, do not hesitate to tell me in the comments, and to share it around you. Thank you for watching until the end, thank you again to the Quai des Savoirs for welcoming me, and I tell you, see you soon.