Research

The Machine on Screen

I took five things I had written about AI in cinema and tested them against every science-fiction film TMDB knows about. Three of them were wrong.

Prateek Gupta · Future Media Production, Manchester Metropolitan University · September 2026 · data · code

3,092
candidate films
2,015
with an AI at the centre
3,263
AI characters tagged
1 of 5
claims survived intact

A while ago I wrote an essay on this site about how cinema has portrayed artificial intelligence. It made the usual claims. AI films run on two opposed frames, the machine as social progress and the machine as Pandora's box. Those frames have barely moved since Metropolis. The 1960s took the AI out of a robot body and put it in a computer. Recent films are more nuanced than the old ones. And the machine always, eventually, turns on us.

I still think it was a decent essay. I also noticed, rereading it, that every claim rested on the same thirty films everyone cites, and that I had picked those films because they fit the argument. That is how nearly all writing about robots in film works, mine included. The canon confirms the story because the canon was assembled by people who already believed it.

So I did it the slow way. Every science-fiction film on The Movie Database (TMDB) that carries an AI keyword or mentions AI in its synopsis, 3,092 films in all, coded with one fixed rubric and counted. The 2,015 films where an AI is central or supporting are the population. Their 3,263 AI characters got tagged for body, gender presentation and stance. Then I checked each claim against the numbers, three times over, to see which findings were solid and which were an artefact of what gets uploaded to TMDB.

Here is the short version.

  1. 1Two dominant framesAI is either progress or Pandora's box, and films sort into those campsnot supported
  2. 2The frames are constant across historythe balance between them has been stable for a centurysupported, with a drift
  3. 3The 1960s shiftthe AI moved from a robot body to a disembodied computer around 2001not supported
  4. 4Contemporary nuancerecent films hold both frames at once more oftenweakly supported
  5. 5The Frankenstein complexthe creation turning on its creator never went awaysupported

The rest of this article is how I got there, what else fell out of the data, and what the numbers cannot yet say. If you just want the tables, they are all here. If you want the raw data, it is on Hugging Face and the pipeline is on GitHub.

How I built it

The corpus

TMDB is the largest film database you can query openly, so that is where I started. I resolved about 130 AI-related keywords (artificial intelligence, robot, android, cyborg, sentient machine, supercomputer, and their many variants) to TMDB keyword ids and pulled every science-fiction film carrying any of them, year by year. Then I widened the net twice. Films tagged with an AI keyword but filed under another genre came in (Big Hero 6 is an animation, Eagle Eye is a thriller). Then every science-fiction film whose title or synopsis mentioned an AI term was scanned in, which catches the films TMDB under-tags. One film, Oblivion (2013), I added by hand because its only relevant keyword is "drone".

For every film I fetched the IMDb id and joined IMDb ratings and vote counts from IMDb's public ratings table. Budget, revenue, runtime, countries, genres, cast and crew came from TMDB. I also located subtitles for 924 films and screenplays for 45, but this article uses plot summaries only. The full texts are for a second pass.

Table 1. Building the corpus and the analysis population.

StageFilmsShare of candidates
Candidate films from TMDB3,092100%
entered via TMDB AI keyword1,79758%
entered via AI term in overview1,29442%
manual additions10%
Coded as AI present2,06967%
AI central or supporting (core population)2,01565%
with at least 100 TMDB votes2659%
high-confidence coding49616%
with an IMDb rating1,29342%
with budget and revenue1655%
with a subtitle file58219%
with a screenplay351%
AI characters tagged in core films3,263
in films1,884

Codings were produced by gpt-5.4-mini from TMDB plot overviews with a fixed rubric. "AI present" excludes documentaries, AI-generated films and metaphorical uses of "robot".

Coding the films

Each film's title, year and TMDB overview went to a small language model (OpenAI's gpt-5.4-mini) with a fixed rubric and a JSON schema that forces every answer into a closed set of categories. The rubric defines AI as any artificial mind or autonomous machine intelligence. It excludes aliens, clones, mutants, magic, remote-controlled tools, documentaries and films that were merely made with AI. For each film the model returns:

  • AI present (true or false) and AI role (central, supporting, incidental, none).
  • Frame: benefit (helper, companion, saviour, a being deserving rights), threat (menace, uprising, control, a warning about hubris), mixed (the film deliberately holds both), or neutral.
  • Frame score: an integer from −2 (the AI is the menace) through 0 (neutral or genuinely balanced) to +2 (the AI is the hero).
  • Embodiment: humanoid robot, non-humanoid robot, cyborg, disembodied, virtual human, multiple, or unknown.
  • Creator betrayal: does the AI turn on its creators, owners or humanity (yes, no, unclear).
  • AI sentient: is it shown as self-aware or emotional (yes, no, unclear).
  • Confidence (high, medium, low) and a one-sentence rationale.

The whole corpus coded in one batch for a few dollars with no failures, which still feels slightly absurd to me. The rationale field is what makes each coding auditable. For The Automatic Motorist (1911), the oldest film in the corpus, the model wrote: "A robot chauffeur drives the couple on fantastical journeys, suggesting a helpful autonomous machine rather than a threat." Fair enough.

Tagging the characters

A second pass gave the model each core film's cast list (character and actor as credited), its overview and its film-level coding, and asked it to list every individual AI character with its kind of body, gender presentation, stance (ally, antagonist, ambiguous, neutral), whether it is voice-only, and its prominence (lead, supporting, minor). Gender presentation means how the film presents the machine, not the actor's gender: male, female, none (a genderless "it", like a drone or a ship's computer), mixed, or unknown.

That last category cost me a finding. The first version of the rubric offered "ambiguous" without defining it. The model used it as a dumping ground for characters it could not place, most of them in obscure recent films, and out came a lovely looking "de-gendering of AI" trend. It vanished the moment I replaced the option with an explicit "unknown" and told the model to prefer that over guessing. Every gender result below excludes unknown and mixed characters, and every time trend is checked against the films with at least 100 TMDB votes, where unknown is rare.

Three populations

The analysis population is the 2,015 core films in which an AI is present and central or supporting. The 1,023 excluded candidates are documentaries, AI-generated films, "robot" used as a metaphor, and some genuine misses of summary-based coding. Ash in Alien and the droids in The Force Awakens are both coded absent because TMDB's synopsis never mentions them. I have kept those films for a subtitle-based re-check rather than deleting them.

Every test runs three times: on all core films, on the 265 well-known films with at least 100 TMDB votes, and on the 496 films whose coding the model marked high-confidence. A finding that holds in only one population is reported as fragile. This turned out to be the most important decision in the whole study.

Films with a central or supporting AI by release year
Figure 1. Films with a central or supporting AI by release year and by the route through which they entered the candidate list. (a) All 2,015 core films. (b) The 265 films with at least 100 TMDB votes. The post-2015 surge in (a) is mostly micro-budget and AI-generated productions that barely exist in (b).

Figure 1 is the corpus's biggest bias, drawn. Of the 2,015 core films, 589 were released in 2023 or later, and the 2020s alone hold 862 films against 525 for the whole of the 2010s. Most of these are short, unrated productions. The well-known subset in panel (b) is a different shape entirely: a slow rise from the 1970s and a plateau since 2000. So any trend that shows up in the full corpus but not in the well-known subset is a trend in what gets uploaded, not in what gets watched.

The corpus is also linguistic. English-language films are 1,264 of the 2,015 (63%) and Japanese 259 (13%). Anime and tokusatsu franchises carry a lot of cinema's AI by volume, which as a Gundam and Ghost in the Shell person I was pleased to see.

Table 2. Distribution of the AI codings in the core population and in the two robustness subsets.

CodingAll core films
n = 2,015
≥ 100 TMDB votes
n = 265
High-confidence
n = 496
Frame
Benefit516 (26%)55 (21%)121 (24%)
Threat598 (30%)82 (31%)166 (33%)
Mixed664 (33%)117 (44%)201 (41%)
Neutral237 (12%)11 (4%)8 (2%)
Frame score
−2325 (16%)59 (22%)133 (27%)
−1381 (19%)50 (19%)69 (14%)
0775 (38%)96 (36%)165 (33%)
+1463 (23%)50 (19%)98 (20%)
+271 (4%)10 (4%)31 (6%)
Embodiment
Humanoid robot712 (35%)102 (38%)204 (41%)
Non-humanoid robot306 (15%)35 (13%)64 (13%)
Cyborg146 (7%)23 (9%)48 (10%)
Disembodied448 (22%)54 (20%)100 (20%)
Virtual human62 (3%)7 (3%)17 (3%)
Multiple196 (10%)44 (17%)59 (12%)
Unknown145 (7%)0 (0%)4 (1%)
Creator betrayal
Yes444 (22%)105 (40%)206 (42%)
No794 (39%)91 (34%)191 (39%)
Unclear777 (39%)69 (26%)99 (20%)
AI sentient
Yes703 (35%)158 (60%)307 (62%)
No95 (5%)14 (5%)29 (6%)
Unclear1,217 (60%)93 (35%)160 (32%)
Coding confidence
High496 (25%)154 (58%)496 (100%)
Medium1,009 (50%)96 (36%)0 (0%)
Low510 (25%)15 (6%)0 (0%)

Statistics, briefly

Shares carry Wilson 95% confidence intervals, means carry t-based intervals, medians carry bootstrap intervals. Whether a distribution has two modes is measured with the bimodality coefficient of Pfister and colleagues, with a bootstrap interval; values above 0.555 mean two modes. Frame against decade is a chi-square test with Cramér's V as the effect size. Trends are logistic regressions on release year, reported as an odds ratio per decade. The changepoint in the disembodied share is the year that best splits the series into two levels, again with a bootstrap interval. Every figure uses the Okabe-Ito colour-blind-safe palette: benefit blue, threat vermilion, mixed green, neutral grey. If none of that means anything to you, the verdict boxes are the bit to read.

Claim 1

Two dominant frames

If films really sort into helpers and menaces, the frame score should have a valley in the middle. The "balanced" category should be sparse. Figure 2 shows the opposite.

Distribution of the frame score in three populations
Figure 2. Distribution of the frame score (−2 = the AI is the menace, +2 = the AI is the hero) in (a) all core films, (b) films with at least 100 TMDB votes and (c) high-confidence codings only. BC is the bimodality coefficient with a bootstrap 95% CI; values above 0.555 indicate two modes. In every population the distribution has one peak, at 0.

In all three populations the mode is 0. The bimodality coefficient is 0.45 (95% CI 0.43 to 0.47) in the full corpus, 0.47 (0.42 to 0.52) among well-known films and 0.51 (0.48 to 0.54) among high-confidence codings, all below the two-mode threshold. High-confidence codings come closest, because the model is surest about the films with the clearest stance, but even there the middle bin is the largest.

Read as categories rather than scores, "mixed" is the single biggest frame: 33% of all core films, and 44% of well-known ones. Threat is 30%, benefit 26%. The two poles exist. The mass of films sits between them, and among the films people have actually seen the middle is the majority, not a compromise category.

The poster panel below shows what each frame looks like among the most-voted films. The benefit row is Star Wars, Pixar and Interstellar. The threat row is almost entirely the Terminator and Matrix franchises. The mixed row is the prestige tier, from 2001 and Blade Runner to Her and Ex Machina.

The three frames among the most-voted films, as poster rows
The three frames among the most-voted films. Posters are TMDB images, reproduced for commentary.
Verdict
Not supported as stated. The two poles exist, but films do not sort into them. Most sit in the middle.

Claim 2

The frames are constant across history

Frame of AI films by decade
Figure 3. How the frame of AI films has changed by decade (all 2,015 core films). (a) Composition of each decade; the number above each bar is the decade's film count. (b) Share of threat, benefit and mixed framings with Wilson 95% confidence intervals.

Table 4. Frame of the 2,015 core films by decade of release.

DecadeFilmsBenefitThreatMixedNeutralThreat share [95% CI]Mixed share
<1960252156260% [41%, 77%]24%
1960s4872211846% [33%, 60%]23%
1970s66241818627% [18%, 39%]27%
1980s132394737936% [28%, 44%]28%
1990s1583564461341% [33%, 48%]29%
2000s1993565762333% [27%, 39%]38%
2010s5251571241756924% [20%, 27%]33%
2020s86221724329510728% [25%, 31%]34%

The chi-square test finds a statistically significant association between frame and decade in the full corpus (χ² = 60.1, df = 21, p < 0.001), but the effect size is negligible: Cramér's V = 0.10. In the well-known subset (V = 0.15, p = 0.19) and the high-confidence subset (V = 0.12, p = 0.21) the association is not significant at all. On the usual reading of effect sizes, the mix of frames has been consistent in practice. My essay was right about this one.

There is one real drift inside that consistency. Threat framing has fallen. Before 1960, 60% of AI films framed the machine as a menace; in the 2010s and 2020s the figure is under 30%. A logistic regression of threat against benefit on year gives an odds ratio of 0.90 per decade (95% CI 0.84 to 0.96, p = 0.002). The same regression on well-known films gives 0.82 (0.66 to 1.01, p = 0.07) and on high-confidence codings 0.94 (0.84 to 1.06, p = 0.34). The direction is the same everywhere, but the significance depends on the flood of recent small films. And what replaced threat is not benefit. It is "both at once", which has been the most common frame since the 2000s.

The early decades need a caution. Fewer than 50 films survive from before 1960 in this corpus, and that 60% threat share carries an interval from 41% to 77%.

The two most-voted AI films of each decade
The two most-voted AI films of each decade.
Verdict
Supported, with a drift. The frame mix differs across decades only negligibly. Inside that stability, the simple villain has become rarer and the ambivalent machine more common.

Claim 3

The 1960s moved AI from robots to computers

This claim is precise enough to test with a date. If 2001 (1968) marked a shift from the robot body to the disembodied mind, the share of films whose AI has no body should step up in or around the 1960s.

The physical form of the AI by decade and the disembodied share by year
Figure 4. The physical form of the AI. (a) Dominant embodiment by decade among core films with a determinable form. (b) Share of films per year whose AI is disembodied or a virtual human, with a 5-year centred rolling share. The best single changepoint in the share is 2023 (bootstrap 95% CI 2016 to 2023; share 17% before versus 52% after, n = 1,870), not the 1960s.

It does not step up. The disembodied share by decade is 12% before 1960, 8% in the 1960s, 9% in the 1970s, 11% in the 1980s, 12% in the 1990s and 8% in the 2000s. For eighty years roughly one AI film in ten had a computer rather than a robot at its centre, and 2001 did nothing to that number. The share rises to 21% in the 2010s and 45% in the 2020s, and the best single changepoint in the yearly series is 2023, with a bootstrap interval from 2016 to 2023. The bodiless AI on screen belongs to the decade in which real bodiless AI became a consumer product.

The robustness checks complicate this without rescuing the claim. Among well-known films the disembodied share is high in the 1960s and 1970s (four of five films in the 1960s, which is 2001 and its neighbours), falls through the 1980s and 1990s, and rises again in the 2020s. The best changepoint there is 1985 with an interval so wide (1979 to 2024) that it says nothing. Among high-confidence codings the changepoint is 2017 (1995 to 2025). What the canon remembers is that 2001 had a computer villain. What the corpus shows is that the canon is a handful of films sitting on a base rate that did not move.

The humanoid robot has meanwhile lost ground steadily, from 71% of films in the 1960s to 34% in the 2020s. The cyborg peaked in the 1990s (27%, the RoboCop and Ghost in the Shell decade) and the multi-form film (Transformers, Star Wars) holds around a fifth of well-known titles.

Most-voted films for each kind of AI body
One row per kind of body: the most-voted films whose AI is a humanoid robot, a non-humanoid robot, a cyborg, disembodied, or a virtual human.
Verdict
Not supported. The turn to disembodied AI is real, but it happened in the late 2010s, not the 1960s.

Claim 4

Contemporary films are more nuanced

If "mixed" is the nuanced frame, the question is whether its share rises with time. In the full corpus it does: 24% before 1960, 27% to 29% through the 1970s to 1990s, 38% in the 2000s, 33% in the 2010s and 34% in the 2020s. A logistic trend gives an odds ratio of 1.08 per decade (95% CI 1.02 to 1.14, p = 0.009).

The finding is fragile. Among well-known films the odds ratio is the same, 1.08, but the interval spans one (0.94 to 1.25, p = 0.29). Among high-confidence codings it is 1.11 (1.00 to 1.22, p = 0.05), right on the boundary. The mixed frame has been the largest since the 2000s among films people have seen, but it was already common in the 1970s and 1980s among the same films, and the rise since then is small.

Verdict
Weakly supported. Nuance drifts up by about 8% per decade in the odds, and the drift is not significant in the well-known subset.

Claim 5

The Frankenstein complex persists

Asimov named the Frankenstein complex in order to complain about it: the reflex by which every fictional machine eventually turns on the people who built it. The rubric asks directly whether the AI betrays its creators, owners or humanity.

Share of films in which the AI turns on its creators, by decade
Figure 5. Share of films in which the AI turns on its creators, by decade, among films with a determinable answer, with Wilson 95% CIs. Decades with fewer than 15 such films are omitted.

Among the 1,238 core films where the answer is determinable, the AI betrays its makers in 36%. Among well-known films the share is 54% (of 196), and among high-confidence codings 52% (of 397). That gap between the corpus and its well-known subset is telling: the films people watch are more likely to contain a betrayal than the films that merely exist. Either betrayal makes a better story, or the model finds it easier to spot in famous films. Probably both.

Across decades the share never leaves the band between 30% and 67%, and the trends are flat or slightly negative: odds ratio 0.93 per decade in the full corpus (0.87 to 0.99, p = 0.02), 0.96 among well-known films (0.82 to 1.13, p = 0.62), 1.04 among high-confidence codings (0.94 to 1.16, p = 0.42). There is no decade without the story and no evidence that it is fading among the films that matter.

Verdict
Supported. The creation turns on its creator in a third to a half of AI films, in every decade, with no clear trend.

The scorecard

All five claims, all three populations, one table. Brackets are 95% confidence intervals. OR is the odds ratio per decade from a logistic regression on release year.

Table 3. Tests of the five claims in each population.

ClaimStatisticAll core films≥ 100 TMDB votesHigh-confidenceReading
1. Two dominant framesBimodality coefficient (> 0.555 = two modes)0.45 [0.43, 0.47]0.47 [0.42, 0.52]0.51 [0.48, 0.54]not supported
2. Frames constant across historyFrame × decade, Cramér's V0.10
p < 0.001
0.15
p = 0.19
0.12
p = 0.21
supported effect negligible
Threat vs benefit, OR per decade0.90 [0.84, 0.96]
p = 0.002
0.82 [0.66, 1.01]
p = 0.07
0.94 [0.84, 1.06]
p = 0.34
threat declining in the full corpus only
3. 1960s shift to disembodied AIBest changepoint in disembodied share2023 [2016, 2023]
17% to 52%
1985 [1979, 2024]
41% to 21%
2017 [1995, 2025]
15% to 39%
not supported
4. Contemporary films more nuancedMixed frame, OR per decade1.08 [1.02, 1.14]
p = 0.009
1.08 [0.94, 1.25]
p = 0.29
1.11 [1.00, 1.22]
p = 0.05
weak not significant among well-known films
5. Frankenstein complex persistsCreator betrayal, OR per decade0.93 [0.87, 0.99]
p = 0.02
0.96 [0.82, 1.13]
p = 0.62
1.04 [0.94, 1.16]
p = 0.42
persists slight decline in the full corpus only

What audiences reward

The claims are about what cinema shows. A second question is what audiences prefer, and the corpus can answer that descriptively, because every film with an IMDb id carries a rating and a vote count.

Audience reception by coding: IMDb rating and box-office return
Figure 6. Audience reception by coding. (a) Mean IMDb rating with 95% CI for the 412 core films with at least 1,000 IMDb votes; the vertical line is the grand mean (5.82). (b) Median box-office return (revenue ÷ budget) by frame for the 151 films with a reported budget of at least US$1 million and revenue, with a bootstrap 95% CI.

Table 5. Mean IMDb rating by coding for the 412 core films with at least 1,000 IMDb votes.

CodingnMeanSD95% CI
Frame
Benefit906.081.50[5.77, 6.40]
Threat1525.281.51[5.04, 5.52]
Mixed1516.231.09[6.05, 6.40]
Neutral195.671.65[4.87, 6.46]
Frame score
−21075.161.49[4.87, 5.44]
−1755.851.47[5.51, 6.18]
01346.141.15[5.94, 6.34]
+1786.161.41[5.84, 6.47]
+2185.851.74[4.99, 6.71]
Embodiment
Humanoid robot1515.921.32[5.71, 6.13]
Non-humanoid robot715.601.55[5.23, 5.97]
Cyborg465.441.44[5.01, 5.87]
Disembodied745.911.47[5.57, 6.25]
Multiple576.141.48[5.74, 6.53]
AI sentient
Yes2006.251.26[6.07, 6.42]
No245.601.45[4.99, 6.22]
Unclear1885.391.49[5.18, 5.61]
Creator betrayal
Yes1515.651.49[5.41, 5.89]
No1445.951.43[5.72, 6.19]
Unclear1175.881.36[5.63, 6.13]

The raw differences are big. Films that frame the AI as a threat average 5.28 on IMDb. Mixed films average 6.23 and benefit films 6.08, nearly a full point higher. The score scale has the same shape: the −2 films (5.16) sit well below everything else, and the +2 films (5.85, but there are only 18 of them) are no higher than the +1 films. Films whose AI is shown as sentient average 6.25 against 5.60 for those whose AI is just a program. Betrayal costs about a third of a point.

A regression explains most of this away. An ordinary least squares fit of rating on all the codings, with year, log vote count and language as controls, reaches R² = 0.47, and nearly all of that comes from two controls. Each unit of log votes adds 0.98 points, and non-English films rate 1.29 points higher (call it the Japanese animation effect). The threat coefficient shrinks to −0.44 and is not significant (p = 0.12). The honest reading is that threat films are, on average, cheaper and less watched, and cheap, little-watched films rate lower whatever their AI gets up to.

Box office tells the same story with smaller numbers. Among the 151 films with a reported budget of at least a million dollars, benefit films return a median 1.99 times their budget (bootstrap 95% CI 1.12 to 2.96), mixed films 1.86 (1.54 to 2.30) and threat films 1.42 (0.80 to 1.98). Threat films are also made on smaller budgets: a median of US$20 million against US$30 million for benefit and US$32 million for mixed. In a regression of log return on frame, betrayal, sentience, year and log budget, only budget predicts return.

Table 6. Box-office return by frame for the 151 core films with a reported budget of at least US$1 million and revenue.

FramenMedian returnBootstrap 95% CIMedian budget (US$ M)Median revenue (US$ M)
Benefit381.99[1.12, 2.96]3077
Mixed701.86[1.54, 2.30]3267
Threat421.42[0.80, 1.98]2029

So audiences rate the friendly and the complicated AI higher than the menacing one, and studios spend more on them. Which way the causation runs, the data cannot say.

Who the AI is

The film-level codings say what a film thinks about its AI. The character-level tags say who the AI is. Across the 1,884 core films with a credited AI there are 3,263 AI characters: 1,690 humanoid robots (52%), 602 disembodied systems (18%), 506 non-humanoid robots (16%), 247 cyborgs (8%) and 218 virtual humans (7%). By presentation, 1,221 are male (37%), 852 female (26%), 536 have no gender (16%), 10 shift or mix, and 644 (20%) could not be determined, nearly all of them in obscure recent films. Everything below uses the 2,159 lead and supporting characters whose gender presentation is male, female or none.

The AI used to be a man

Gender presentation of AI characters by decade
Figure 7. Gender presentation of lead and supporting AI characters by decade, with Wilson 95% CIs. (a) All films. (b) Films with at least 100 TMDB votes, where "unknown" is rare.

In the full corpus the male share of AI characters falls from around 60% before 2000 to 36% in the 2020s, and the female share rises from 21% to 40%. The logistic trends are strong: odds ratio 0.82 per decade for male presentation (95% CI 0.78 to 0.86) and 1.22 for female (1.15 to 1.30), both p < 0.001.

The well-known subset tells a more careful story, and it is the one I stand behind. Among films with at least 100 TMDB votes, the male share is flat (odds ratio 0.98 per decade, p = 0.76) and the female share rises (1.23, 95% CI 1.06 to 1.43, p = 0.007), from about one in ten characters in the 1970s to one in three in the 2020s. The steep male decline in the full corpus belongs to the flood of obscure recent films, not to the films people watch. What has actually happened among well-known films is that female-presented AIs have been added and the ungendered machine has become rarer (0.81 per decade, p = 0.005), while the male AI has held its ground.

Table 8. Logistic regression of each gender presentation on release year among lead and supporting AI characters: odds ratio per decade.

PopulationGendernOR per decade95% CIp
All filmsMale2,1590.82[0.78, 0.86]< 0.001
Female2,1591.22[1.15, 1.30]< 0.001
No gender2,1591.05[0.99, 1.12]0.13
Films with ≥ 100 TMDB votesMale4860.98[0.87, 1.10]0.76
Female4861.23[1.06, 1.43]0.007
No gender4860.81[0.70, 0.94]0.005
Films whose lead AI presents as male, female or genderless
Films whose lead AI presents as male, female or genderless.

Gender and body are the same fact

Gender presentation and kind of body are tightly linked (Cramér's V = 0.46). Male and female AIs are both mostly humanoid, 65% and 63%. But a female AI almost never gets a non-humanoid robot body (3%, against 11% for male AIs) and is twice as often a disembodied voice (12% against 6%) or a virtual human (12% against 6%). The ungendered AIs are the drones, ships and systems: 91% of them are non-humanoid robots or disembodied. Samantha in Her and Ava in Ex Machina are the two poles of the female AI, the voice and the perfect body, and there is very little between them.

Table 7. Lead and supporting AI characters: kind of body and stance by gender presentation. Row percentages; n = 2,159.

GendernHumanoidNon-humanoidCyborgDisembodiedVirtual humanAllyAmbiguousNeutralAntagonist
Male1,01865%11%12%6%6%50%22%5%23%
Female71963%3%10%12%12%36%37%8%20%
No gender4229%41%0%50%0%23%18%11%47%

Gender × kind: χ² = 916.8, df = 8, p < 0.001, Cramér's V = 0.46. Gender × stance: χ² = 212.9, df = 6, p < 0.001, Cramér's V = 0.22.

The villain has no body and no gender

Stance of AI characters by kind of body and by gender within kind
Figure 8. Stance of the 3,263 AI characters. (a) Stance by kind of body. (b) Share of characters coded antagonist by gender presentation within each kind, with Wilson 95% CIs.

The stance an AI takes toward the humans depends more on its body than on anything else. Humanoid robots are allies 41% of the time and antagonists 21%. Non-humanoid robots are allies 45% and antagonists 32%. Disembodied systems are allies only 18% and antagonists 36%, the highest of any kind. In a logistic model of antagonist odds with gender, kind and decade all held fixed, a disembodied AI has 2.6 times the antagonist odds of a humanoid robot (95% CI 1.9 to 3.6) and an ungendered AI 2.3 times the odds of a male one (1.7 to 3.2).

Within each kind of body, panel (b) shows the ungendered machine as the antagonist and the gendered ones as roughly alike. Among non-humanoid robots, the ungendered ones are antagonists 47% of the time against 20% for male and 17% for female. Among disembodied AIs, 52% against 25% and 38%.

The AI cinema teaches you to fear is the one you cannot look in the face: Skynet, the Master Control Program, AUTO, the Entity, HAL. The AI it teaches you to love has a body and a name: TARS, R2-D2, Baymax, the Iron Giant, and, after 1984, the Terminator.

Female AIs are ambivalent, not evil

Stance of AI characters by gender presentation
Figure 9. Stance of lead and supporting AI characters by gender presentation (n = 2,159). (a) Composition of each gender. (b) The same shares with Wilson 95% confidence intervals.

Male-presented AIs are allies half the time (50%) and antagonists 23%. Female-presented AIs are allies 36% and antagonists 20%, and the difference is made up by the ambiguous category: 37% of female AIs are coded as both helping and threatening, or as shifting, against 22% of male AIs. Ungendered AIs are antagonists 47% of the time.

Holding kind and decade fixed, a female AI is no more likely than a male one to be an antagonist (odds ratio 0.88, 95% CI 0.69 to 1.13, p = 0.31) but clearly less likely to be an ally (0.61, 0.49 to 0.74, p < 0.001). The female-AI story in cinema is not menace. It is ambivalence: Ava, M3GAN, Iris in Companion, Mother in I Am Mother, all coded as neither ally nor enemy, all of them the film's question rather than its answer.

Is there a trend toward evil female AIs?

Share of AI characters coded antagonist by gender and decade
Figure 10. Share of lead and supporting AI characters coded antagonist, by gender presentation and decade, with Wilson 95% CIs. (a) All films. (b) Films with at least 100 TMDB votes.

No. The female antagonist share sits between 15% and 25% in every decade of the full corpus, flat or slightly falling, and the odds ratio per decade is 0.93 (95% CI 0.82 to 1.04, p = 0.21). Among well-known films it is 0.96 (0.73 to 1.26, p = 0.75). The male trend is the same, 0.93 and 0.95. A female-by-decade interaction term, which directly tests whether the female trend differs from the male one, gives an odds ratio of 1.00 (0.86 to 1.15, p = 0.99) in all films and 1.01 (0.73 to 1.39, p = 0.95) in well-known ones. The two trends are indistinguishable.

The only line in Figure 10 with any shape is the grey one. Ungendered AIs were antagonists 60% to 70% of the time in the 1980s and 1990s and have been under half since the 2010s, as more of them became helpers. TARS and CASE in Interstellar, GERTY in Moon and Claptrap in Borderlands are the recent examples. The older ungendered AIs are Skynet, Colossus, Alpha 60, the Krell machine and the security robots of Chopping Mall.

Era matters on its own. With gender and body held fixed, a 1990s AI character had 1.9 times the antagonist odds of a 2010s one, and the 2020s are, if anything, less hostile than the 2010s (0.76, p = 0.05). The decade of the Matrix and the T-1000 was the peak of the machine villain.

The films everyone has seen

Corpus statistics describe cinema. Most of us experience a canon. Figure 11 puts the two together by placing every core film with at least 50,000 IMDb votes on the frame scale by year.

The 111 most-voted AI films placed on the frame scale by release year
Figure 11. The 111 core films with at least 50,000 IMDb votes placed on the frame scale by release year. Marker area grows with the log of the vote count; colour is the coded frame. The most-voted films are labelled.

The most-voted films cluster in the middle of the scale. Of the 25 films with the most votes (Table 9), twelve are coded mixed, nine benefit and four threat. The threat films are The Matrix and its first sequel, The Terminator and Oblivion. The pure hero AI at +2 is rare and recent: WALL·E, Big Hero 6, The Iron Giant, Free Guy. The pure menace at −2 is a franchise phenomenon, and the Terminator himself moves from −2 to ally after his first film.

The 20 most-voted AI films
The 20 most-voted AI films in the corpus.

Table 9. The 25 core films with the most IMDb votes and their codings.

FilmYearIMDb votesRatingFrameScoreEmbodimentBetrayalConfidence
Interstellar20142,600,6848.7Benefit+1Non-humanoid robotNoMedium
The Matrix19992,274,8088.7Threat−2DisembodiedYesHigh
Star Wars19771,586,7288.6Benefit+1MultipleNoHigh
The Empire Strikes Back19801,521,6728.7Benefit+1MultipleNoHigh
WALL·E20081,339,6838.4Benefit+2MultipleNoHigh
Terminator 2: Judgment Day19911,298,6458.6Mixed0MultipleYesHigh
Avengers: Age of Ultron20151,019,7917.3Mixed−1MultipleYesHigh
The Terminator19841,016,7248.1Threat−2CyborgYesHigh
Blade Runner1982890,1718.1Mixed−1Humanoid robotYesHigh
Aliens1986847,2308.4Benefit+1Humanoid robotNoMedium
2001: A Space Odyssey1968791,7728.3Mixed−1DisembodiedYesHigh
Blade Runner 20492017767,3218.0Mixed0MultipleUnclearHigh
Rogue One: A Star Wars Story2016764,9997.8Benefit+1MultipleNoMedium
Her2013733,1878.0Mixed+1DisembodiedNoHigh
Transformers2007725,8587.1Mixed0MultipleUnclearHigh
Prometheus2012706,7007.0Mixed−1Humanoid robotUnclearHigh
The Matrix Reloaded2003676,1417.2Threat−2MultipleYesHigh
Ex Machina2015645,1247.7Mixed−1Humanoid robotYesHigh
I, Robot2004620,5337.1Mixed−1Humanoid robotYesHigh
Oblivion2013590,4237.0Threat−2DisembodiedYesHigh
The Matrix Revolutions2003579,7206.7Mixed−1MultipleYesHigh
Big Hero 62014561,1637.8Benefit+2Non-humanoid robotNoHigh
Passengers2016504,8937.0Benefit+1Humanoid robotNoMedium
Free Guy2021496,7897.1Benefit+2Virtual humanUnclearHigh
Transformers: Dark of the Moon2011460,0116.2Mixed0Humanoid robotUnclearHigh

Table 9 is also the quickest audit available, because it shows the coding at work on films you know. Interstellar is medium-confidence because its synopsis barely mentions TARS. Her is mixed with a positive score, which is right. Aliens is benefit because of Bishop, though anyone who remembers Ash in the first film might object. The first film is coded absent because its synopsis never mentions him, which is the single clearest example of what summary-based coding misses, and the one that annoyed me most.

Who makes AI films

I fetched cast and crew for every film, which allows a short who's who. The directors with the most core AI films are not the auteurs of the canon. They are the franchise and genre workers: Kim Chung-gi with six Robot Taekwon V films, Albert Pyun with six direct-to-video cyborg films, Michael Bay with five Transformers films (all coded mixed), Mamoru Oshii with five (Patlabor and Ghost in the Shell, three of them mixed), Neill Blomkamp with five, James Cameron with four. Among writers, Lana Wachowski leads with seven, all threat or mixed, and James Cameron has five.

The actors who have played the most AIs are voices. Peter Cullen has fifteen AI roles, nearly all of them Optimus Prime. Frank Welker has twelve, mostly Megatron and Soundwave. Hugo Weaving has six, Agent Smith three times and Megatron three times, every one an antagonist. Nobuyo Oyama voiced Doraemon six times, every one an ally. Arnold Schwarzenegger's five Terminators are an antagonist in 1984 and an ally in every film since. Alan Tudyk's six (Sonny, K-2SO, Cosmo) run from ambiguous to ally.

The producers tell the industrial story most plainly. The Asylum's David Michael Latt has ten AI films, nine of them coded threat: Transmorphers, The Terminators, Robot Apocalypse, Ape vs Mecha Ape. The Transformers producing trio (DeSanto, Murphy, di Bonaventura) have eight each, seven mixed. Jason Blum has five, four mixed: Upgrade, M3GAN, Afraid, M3GAN 2.0. At the top of the industry, the threat frame is a low-budget product. The mixed frame is where the money is.

What the numbers cannot say yet

Threats to validity

The coder is a language model reading a synopsis. The rubric is fixed and the output is schema-enforced, but nobody has checked the model against a human yet. Only 496 of 2,015 codings are high-confidence by the model's own account, and that is exactly why every claim above was re-run on that subset. Until a random sample of 100 films has been hand-coded and Cohen's kappa reported, the absolute numbers here are indicative, not citable.

The synopsis misses the AI. Alien, The Force Awakens and hundreds of less famous films are coded "no AI" because their TMDB overview never mentions one. Of the 1,023 excluded candidates, 803 carry a TMDB AI keyword and are flagged for a subtitle-based re-check.

The corpus is TMDB. Recent micro-budget and AI-generated films are heavily over-represented: 589 of the 2,015 core films date from 2023 or later. Every trend is therefore reported twice, once in the corpus and once in the subset of films with at least 100 votes, and I trust the second whenever they disagree.

Reception is descriptive. The rating and box-office gaps between frames are real in the raw data and largely absorbed by popularity, language and budget in the regressions. Nothing here supports a causal claim about what audiences want.

Coding is per film, not per franchise. HAL 9000 is coded as an ungendered system in 2010 and may be coded differently in 2001. The Terminator changes stance between films. That is correct behaviour for a film-level study and a hazard for anyone reading the character table as a character encyclopaedia.

Two findings I withdrew

A study that never withdraws anything has not checked itself, so here are mine.

The first was a "de-gendering of AI" trend: an apparent rise in AI characters with no gender. It was an artefact of an undefined "ambiguous" option in the first character rubric, which the model used as "unknown", and which piled up in obscure recent films. With an explicit "unknown" the trend disappeared.

The second was a steep decline in male-presented AIs. It is real in the full corpus and absent among well-known films, so I now report it as a property of the corpus rather than of cinema.

Next

  1. Human validation. Hand-code a random 100 films with the same rubric and report Cohen's kappa against the model.
  2. Text-based coding. Run the rubric on the 924 subtitle files to sharpen low-confidence codings, re-check the 803 keyword-tagged "absent" films, and add the things a synopsis cannot give: how sentiment toward the AI moves across the runtime, and whether the AI is called "it", "he" or "she".
  3. Dialogue share. On the 45 screenplays with speaker labels, measure how much of the film's dialogue the AI itself speaks, as a proxy for whether it is a character or a device.
  4. Audience perception. Join a survey of how people perceive AI to these categories. That is the only route from "what cinema showed" to "what cinema did".
Availability of subtitles and screenplays by TMDB popularity
Figure 12. Availability of full text for the core films by TMDB popularity: share with a subtitle file and share with a screenplay. Subtitles exist for nearly every film with a real audience and for almost none of the unrated long tail, which bounds what a subtitle-based re-coding can cover.

Conclusion

Cinema has never sorted its machines into friends and enemies. From Metropolis to Companion the largest group of AI films has held both possibilities at once, and the films people have actually watched hold them most of all. The balance between the frames has barely moved in a century, though the simple villain has become rarer. The bodiless AI that the canon dates to 1968 is, in the corpus, a product of the years since 2016. Nuance has risen a little. And the Frankenstein complex is intact: in every decade, in a third to a half of these films, the machine turns on the people who made it.

Two things came out of the corpus that were never in my essay. Audiences and studios prefer the friendly and the complicated AI to the menacing one, even if most of that preference is a preference for bigger, better-known films. And the machine on screen has changed sex. It used to be a man. Among the films people watch it is now, one time in three, a woman, and she is written as a question rather than a threat. The villain, when there is one, is the thing with no face at all.

I wrote the original essay believing all five claims. I would now keep one and a half of them. That feels like the right ratio for anything written from a canon.

Data and code

The film table (3,092 candidates, 2,015 core), the 3,263 AI characters and the raw overview codings are published as three datasets under CC BY-NC 4.0 on Hugging Face (allaimovies, allaimovies-ai-characters, allaimovies-annotations), each with a card that carries the verbatim rubric. The pipeline, analysis scripts, notebook and figure code are on GitHub. Every figure here has its datapoints in a CSV beside it and every table exists in Markdown and LaTeX. Subtitles and screenplays are copyrighted and are not distributed. Film metadata is from TMDB (this product uses the TMDB API but is not endorsed or certified by TMDB), ratings are from IMDb's non-commercial datasets, and posters are TMDB images reproduced here for commentary only.

References