How to Spot Fake AI Photos | Hany Farid | TED

TED12:31Added Aug 31, 2026

How do you know if that shocking photo in your feed is real, or just another AI fake? Digital forensics expert Hany Farid explains how he helps journalists, courts and governments find structural errors in AI-generated images, offering four practical tips everyday individuals can use when facing the internet’s war on reality. (Recorded at TED2025 on April 10, 2025)

Watch on YouTube →
Contributed by 刘嘉琪

Transcript

Transcript format
  1. 00:03You are a senior military officer
  2. 00:06and you've just received a chilling message on social media.
  3. 00:11Four of your soldiers have been taken,
  4. 00:14and if demands are not met in the next ten minutes,
  5. 00:17they will be executed.
  6. 00:19All you have to go on is this grainy photo,
  7. 00:22and you don't have the time to figure out
  8. 00:24if four of your soldiers are, in fact, missing.
  9. 00:27What's your first move?
  10. 00:30If I may be so bold,
  11. 00:32your first move is to contact somebody like me and my team.
  12. 00:37I am by training an applied mathematician and computer scientist.
  13. 00:40And I know that seems like a very strange first call at a moment like this,
  14. 00:44but I have spent the last 30 years developing technologies
  15. 00:48to analyze and authenticate digital images and digital videos.
  16. 00:54Along the way,
  17. 00:55we've worked with journalists, with courts and with governments
  18. 00:59on a range of cases
  19. 01:01from a damning photo of a cheating spouse,
  20. 01:05gut-wrenching images of child abuse,
  21. 01:08photographic evidence in a capital murder case,
  22. 01:11and of course, things that we just can't talk about.
  23. 01:16It used to be a case would come across my desk once a month.
  24. 01:21And then it was once a week.
  25. 01:23Now, it's almost every day.
  26. 01:26And the reason for this escalation is a combination of things.
  27. 01:30One, generative AI.
  28. 01:33We now have the ability to create images
  29. 01:35that are almost indistinguishable from reality.
  30. 01:38Two, social media dominates the world
  31. 01:43and is largely unregulated
  32. 01:45and actively promotes and amplifies lies and conspiracies
  33. 01:49over the truth.
  34. 01:51And collectively, this means that it is becoming harder and harder
  35. 01:55to believe anything that we read, see or hear online.
  36. 02:00I contend that we are in a global war for truth
  37. 02:06with profound consequences for individuals,
  38. 02:09for institutions, for societies, and for democracies.
  39. 02:14And I'd like to spend a little time talking today
  40. 02:17about what my team and I are doing
  41. 02:19to try to return some of that trust to our online world
  42. 02:22and in turn, our offline world.
  43. 02:26For 200 years, it seemed reasonable to trust photographs.
  44. 02:30But even in the mid 1800s,
  45. 02:33it turns out the Victorians had a sense of humor.
  46. 02:36They manipulated images.
  47. 02:38Or you could alter history.
  48. 02:40If you fell out of favor with Stalin, for example,
  49. 02:43you may be airbrushed out of the history books.
  50. 02:47But then, in the turn of the millennium,
  51. 02:50with the rise of digital cameras
  52. 02:52and photo-editing software,
  53. 02:54it became easier and easier to manipulate reality.
  54. 02:58And now, with generative AI,
  55. 03:01anybody can create any image of anything, anywhere,
  56. 03:05at a touch of a button.
  57. 03:07From four soldiers tied up in a basement
  58. 03:12to a giraffe, trying on a turtleneck sweater.
  59. 03:15(Laughter)
  60. 03:20It's not fun and games, of course,
  61. 03:22because generative AI is being used to supercharge past threats
  62. 03:26and create entirely new ones.
  63. 03:29The creation of nudes of real women and children
  64. 03:32used to humiliate or extort them.
  65. 03:35Fake videos of doctors promoting bogus cures for serious illnesses.
  66. 03:42A Fortune 500 company losing tens of millions of dollars
  67. 03:46because an AI impersonator of their CEO infiltrated a video call.
  68. 03:52Those threats are real,
  69. 03:53they are here, and we are all vulnerable.
  70. 03:58Before we talk about how we would analyze this image
  71. 04:01to determine if it's real or not,
  72. 04:02it's useful to understand how generative AI works.
  73. 04:06Starting with billions of images with a descriptive caption like this,
  74. 04:11each image is degraded until nothing but visual noise is left.
  75. 04:16A random array of pixels.
  76. 04:18And then the AI model learns how to reverse that process
  77. 04:24by essentially turning that noise
  78. 04:27back into the original image.
  79. 04:30And when this process is done, not once, not twice,
  80. 04:33but billions of times on a diverse set of images,
  81. 04:37the machine has learned how to convert noise
  82. 04:40into an image that is semantically consistent with anything you type.
  83. 04:45And it's incredible.
  84. 04:47But it is decidedly not how a natural photograph is taken,
  85. 04:51which is the result of converting light that strikes an electronic sensor
  86. 04:54into a digital representation.
  87. 04:57And so one of the first things we like to look at
  88. 04:59is whether the residual noise in an image
  89. 05:02looks more like a natural image
  90. 05:04or an AI-generated image.
  91. 05:06Here, for example, is our real dog and our AI dog.
  92. 05:10And here is the residual noise that I've extracted.
  93. 05:14And if you look at this,
  94. 05:15it's not at all obvious that there's any difference between those two patterns.
  95. 05:19But here, in this visualization of the noise,
  96. 05:21you can see a decidedly different pattern
  97. 05:24between the natural and the artificial.
  98. 05:26Those star-like patterns are a telltale sign of generative AI.
  99. 05:31Now, for the mathematicians and the physicists in the audience,
  100. 05:35that is the magnitude of the Fourier transform of the noise residual.
  101. 05:38For everybody else, that detail doesn't matter,
  102. 05:40but you definitely should have taken more math in college.
  103. 05:43(Laughter)
  104. 05:45Professors can't help themselves.
  105. 05:47So let's apply this analysis to this image.
  106. 05:50Here's the noise residual that I've extracted.
  107. 05:53And there is that star-like pattern that you see in the bottom right.
  108. 05:56Our first suggestion that something may be wrong here.
  109. 06:01But no forensic technique is perfect.
  110. 06:03And so you don't stop after one thing,
  111. 06:05you keep going.
  112. 06:06So let's go on to our next one, the vanishing points.
  113. 06:10If you image parallel lines in the physical world,
  114. 06:13they will converge to a single point, what's called the vanishing point.
  115. 06:17A good intuition for that, the railroad tracks.
  116. 06:20When I took this photo, the railroad tracks are obviously parallel,
  117. 06:23but you can see that they narrow as they recede away from me
  118. 06:27and intersect at a single vanishing point.
  119. 06:29This is a phenomenon that artists have known for centuries.
  120. 06:32But here's the great thing.
  121. 06:33AI doesn't know this.
  122. 06:36Because AI is fundamentally, as I just described,
  123. 06:39a statistical process.
  124. 06:41It doesn't understand the physical world, the geometry and the physics.
  125. 06:44So if we can find physical and geometric anomalies,
  126. 06:47we can find evidence of manipulation or generation.
  127. 06:52Here in this image, I've annotated four parallel lines
  128. 06:55on the parallel sides of the wall in our basement photo,
  129. 06:58and you can see a lack of a coherent vanishing point.
  130. 07:02That suggests a physically implausible scene.
  131. 07:06Evidence number two.
  132. 07:08Alright, what else can we learn?
  133. 07:10Surprisingly, shadows have a lot in common with vanishing points.
  134. 07:14Here, what I've done is I've annotated a point on a shadow
  135. 07:18with the corresponding part on the bottom of the rail
  136. 07:21that is casting that shadow.
  137. 07:22And I've extended those lines outwards.
  138. 07:25And they intersect, not at a vanishing point,
  139. 07:28but at the light that is casting that shadow.
  140. 07:32And again, this is a physical phenomena that you expect in natural images.
  141. 07:36And because AI fundamentally doesn't model the physics
  142. 07:39and the geometry of the world,
  143. 07:41it tends to violate these physics.
  144. 07:44Let's apply this analysis to our image.
  145. 07:47Here I've annotated four shadows on the bottom
  146. 07:50from the soldiers' shadows to their legs.
  147. 07:53And you can see that the lines aren't even close to intersecting.
  148. 07:57Not one, not two, but three anomalies.
  149. 08:02We now have a very good indication that this image is not authentic.
  150. 08:08The most important thing I want you to take away from this
  151. 08:12is that while it may not be easy,
  152. 08:14it is possible to distinguish what is real from what is fake.
  153. 08:20I think this image is a bit of a metaphor for how a lot of us feel.
  154. 08:26We feel like hostages.
  155. 08:29We don't know what to trust anymore.
  156. 08:31We don't know what is real.
  157. 08:33What is fake.
  158. 08:35But we don't have to be hostages.
  159. 08:38We don't have to succumb to the worst human instincts
  160. 08:42that pollute our online communities.
  161. 08:45We have agency, and we can effect change.
  162. 08:49Now, I can't turn you all into digital forensics experts in ten minutes.
  163. 08:56But I can leave you with a few thoughts.
  164. 08:58One, take comfort in knowing
  165. 09:02that the tools that I've described and that my team and I are developing
  166. 09:05are being made available to journalists, to institutions,
  167. 09:09to the courts to help them tell what's real and fake,
  168. 09:12which in turn helps you.
  169. 09:14Two, there is an international standard
  170. 09:16for so-called content credentials
  171. 09:19that can authenticate content at the point of creation.
  172. 09:23As these credentials start to roll out, they will help you, the consumer,
  173. 09:27figure out what is real and what is fake online.
  174. 09:30And while they won't solve all of our problems,
  175. 09:33they will absolutely be part of a larger solution.
  176. 09:37Three, please understand
  177. 09:40that social media is not a place to get news and information.
  178. 09:45(Applause)
  179. 09:52It is a place that Silicon Valley created to steal your time,
  180. 09:57your attention,
  181. 09:59by delivering you the equivalent of junk food.
  182. 10:03And like -- thank you.
  183. 10:05(Applause)
  184. 10:06And like any bad habit, you should quit.
  185. 10:09(Laughter)
  186. 10:10And if you can't quit,
  187. 10:12at least do not let this be your primary source of information,
  188. 10:15because it is simply too riddled with lies and conspiracies
  189. 10:20and now AI slop,
  190. 10:21to be even close to being reliable.
  191. 10:24Four.
  192. 10:26Understand that when you share false or misleading information,
  193. 10:30intentionally or not, you're all part of the problem.
  194. 10:34Don't be part of the problem.
  195. 10:35There are serious, smart,
  196. 10:37hard-working journalists and fact-checkers out there
  197. 10:39who work every day,
  198. 10:41because I talk to them every day,
  199. 10:43to sort out the lies from the truths.
  200. 10:45Take a breath before you share information,
  201. 10:49and don't deceive your friends and your families and your colleagues,
  202. 10:52and further pollute the online information ecosystem.
  203. 10:57(Applause)
  204. 11:02We're at a fork in the road.
  205. 11:05One path, we can keep doing what we've been doing for 20 years,
  206. 11:09allowing technology to rip us apart as a society,
  207. 11:13sowing distrust, hate, intolerance.
  208. 11:17Or we can change paths.
  209. 11:19We can find a new way to leverage the power of technology to work for us
  210. 11:24and with us, and not against us.
  211. 11:28That choice is entirely ours.
  212. 11:30Thank you.
  213. 11:31(Applause)
  214. 11:39Latif Nasser: We're doing rapid-fire questions, you ready?
  215. 11:42Roughly what percent of images online do you believe to be fake?
  216. 11:46Hany Farid: Depends on the platform.
  217. 11:47Signal-to-noise ratio is getting close to one.
  218. 11:50Stay off of Twitter, of X, and stay off of everything else for that matter.
  219. 11:53LN: So what do you think?
  220. 11:54HF: I would say we're getting close to 50 percent.
  221. 11:57LN: Can you differentiate between things that have, like,
  222. 12:00Instagram or TikTok filters or Photoshop versus fully AI generated images?
  223. 12:04HF: Yes, but it's becoming increasingly more difficult.
  224. 12:08LN: Are there any websites a layperson can use to check?
  225. 12:10HF: No.
  226. 12:12By the way, this is a secondary problem,
  227. 12:14which is now people are creating fake things,
  228. 12:16then going to fake sites to authenticate them.
  229. 12:19And it's all getting very weird, don't do it.
  230. 12:21LN: Last one, most important one.
  231. 12:22In CSI crime shows, when they say enhance,
  232. 12:25can you do that?
  233. 12:26(Laughter)
  234. 12:27HF: Yes.
  235. 12:28LN: OK, great. Hany Farid, everybody.