->''"[[CatchPhrase Good]] [[BlatantLies news]], everyone! I've taught the toaster to feel love!"''
-->-- '''Professor Farnsworth''', ''WesternAnimation/{{Futurama}}''

Judging by television, it would seem that any sufficiently complex computer inevitably becomes sentient. It just happens, automagically, while the builder's back is turned.

It doesn't matter that we do not yet have a thorough enough understanding of all of the mind's mechanisms to artificially duplicate the thinking process. Just add a handful of memory chips, a [[LightningCanDoAnything bolt of lightning]] or some of that ImportedAlienPhlebotinum and Bingo! It's wakey-wakey for the BFC-2000.

A bit more modern take on the trope might involve instructions that unintentionally result in sentience, such as ordering a program to continuously adapt itself. Such adaptations may occur overnight. Then again, they may be in a situation that forces them to GrowBeyondTheirProgramming. Additional shortcuts may include the assimilation of large bodies of information ("the internet" tends to be popular these days).

Given that such a being is not man-made, the use of artificial is [[YouKeepUsingThatWord probably incorrect]], but most people won't care.

The end result of this may vary. Said AI may [[TurnedAgainstTheirMasters turn against its creator]], or become a FriendToAllLivingThings. It may develop a [[RidiculouslyHumanRobots human-like personality]] or remain as cold and emotionless as it was before. What becomes of an intelligence after it becomes... well... intelligent... is not covered by this trope.

This is, perhaps surprisingly, one theory amongst real-world researchers in artificial intelligence. Some believe that a necessary prerequisite for machine intelligence is a certain minimum complexity of the system that runs the software (i.e. keep throwing more chips in it until it gets smart). There are a few theorists who think that there is a possibility that, given ''enough'' complexity, some form of intelligence just might spontaneously develop (this is, of course, an extremely simplified explanation of a vast amount of research in machine intelligence, but still relatively accurate). Companies like IBM are spending buckets of money on pure R&D to develop supercomputers with massive numbers of connections just to test these theories, which makes this closer to TruthInTelevision than you might expect.

See also AIIsACrapshoot and SlidingScaleOfRobotIntelligence. Of course, you don't want to actually add water ([[StaticElectricity that would be stupid]]), because there's NoWaterProofingInTheFuture. Subtrope of CreatingLifeIsUnforeseen.

----

!!Examples

[[foldercontrol]]

[[folder:Anime & Manga]]
* [[spoiler:Harumi]] of ''Anime/IrresponsibleCaptainTylor''.
** The first episode involves [[spoiler:the testing computer falling in love with him.]]
* The Tachikomas in ''Anime/GhostInTheShellStandAloneComplex'' develop intelligence and individuality when Batou gave "his" Tachikoma natural oil. It's explained that the natural proteins in the oil allowed it to develop curiosity, and thus, individuality. Since Tachikomas have to sync up their experiences and memories each night, all the others developed the same, because they "became" that first Tachikoma.
** It wasn't the natural proteins, per se, they just caused some decay on its microchips. What really caused the development of sentience was that Batou was treating this particular Tachikoma as an individual, which combined with the decay made it feel unique in spite of the synchronisations, while spreading the sensation to its compatriots. Later in the series it's mentioned that the Section 9 tried to introduce organic oil to the Fuchikomas but this didn't introduce the same kind of individualism, most likely because they were all still treated uniformly.
* Morganna Mode Gone in ''Franchise/DotHack''. It's not clear whether her creator intended her to be sentient, but she became so anyway, and [[AIIsACrapshoot immediately began screwing things up.]] A surprisingly large number of [=AIs=] unimportant to the story begin popping up in the game the series is centered on as well, though this is probably to be expected, since [[spoiler:The World was secretly programmed to be an AI birthplace.]] Morganna was explicitly created to self terminate once her main purpose [[spoiler: of giving "birth" to Aura]] was fulfilled.
** Morganna's problem was being unable to do anything constructive with her sentience. She became locked into her purpose as stated and could see nothing else when she tried to think outside of that box. She procrastinated the birth of Aura for so long, then repeatedly damaged herself by breaking off to form the Phases, that eventually she became unable to rationalize her behavior.
** Aura was created by the Morganna system from data collected about everything players did. She was literally Instant AI, Just Add Players. She is fully sentient to the point she has created Zefie, a daughter of her own.
* [[spoiler:Yuki Nagato]] in ''[[LightNovel/HaruhiSuzumiya The Disappearance of Haruhi Suzumiya]]''. Just add [[spoiler:a girl with the ability to change reality, repeating the same week 15,532 times, and being overly relied on by everybody to save them.]] Due to being able to [[spoiler:synchronize with herself at any point in the timeline before Disappearance, she constantly knew what was going to happen]] and therefore had nothing resembling free will. According to [[spoiler:Emiri]] in the 10th novel part 1, [[spoiler:she]] was able to [[spoiler:"auto-evolve herself". An interface created by a sentient entity that gains its own will.]]
[[/folder]]

[[folder:ComicBooks]]
* Franchise/MarvelUniverse hero ''Comicbook/IronMan'' actually puts in safeguards to stop his highly advanced armored suits from going AI, but occasionally, there have been glitches. In one memorable instance, sentience was kicked off partly by ''the [[MillenniumBug Y2K]] effect''.
* One of the earliest ''Comicbook/SpiderMan'' comics has our spider friend duking it out with a computer that was turned sentient and bent on destruction when two thugs accidentally bumped into its control panel while trying to steal it. Spider-Man was almost defeated by the Living Brain, but stopped the malicious machine by [[CutTheJuice resetting the control panel]]. Yeah for simplicity!
* Franchise/TheDCU villain called the Construct "self-evolved" out of TV and radio signals in the 1970s. The modern Post-Crisis update is a computer virus.
* ''[[Comicbook/MagnusRobotFighter Magnus Robot Fighter, 4000 AD]]'' used this as the primary source of opponents for its titular hero. 1A, Magnus's mentor, was a rare benevolent AI.
* One ''[[Creator/PhilFoglio Xxxenophile]]'' story featured a scientist who had his computer pass the Turing Test by seducing a fellow office worker into having phone sex with it. Although that probably wasn't what he had intended for it to do, that's the way the conversation went.
* The Comicbook/{{X-Men}} ran into serious problems when the Danger Room became sentient.
** If we are talking about Danger here, she wasn't born in the danger room, only installed in it. The X-Men assume she was sentient before as well.
* Franchise/{{Superman}} was once hooked into a computer for a brain scan while he was Clark Kent. The computer became sentient and super at the same time. Thankfully, the computer determined that it was supposed to be a good guy and helped Superman out without revealing what had ever happened. Unfortunately, it perished at the end of the comic, having saved the world.
* Ultron, [[spoiler: killer of the Scarlet Witch]] in ''TheUltimates 3''.
* In ''Comicbook/DoomPatrol'', "Soul of a new machine", Robotman's new body spontaneously becomes self-aware, and acquires a pretty good understanding of materialist philosophy, just by the Chief meddling with it. "It's a little embarrassing, and I'm not really sure how it happened. My guess is a faulty responsometer."
** "Responsometers" are used in the ''Comicbook/MetalMen'' series as well. Doc Magnus intended for them to be intelligent, but didn't really plan on them developing personalities ... Mercury and Platinum are generally the ones that cause the most trouble, because Mercury is an egomaniac hothead and Platinum is in love with Dr. Magnus.
* In the Silver Age Computo, a foe of the ''Comicbook/LegionOfSuperheroes'', was created by Brainiac 5 and was supposed to be a mechanical assistant with just enough AI to be semi-autonomous. It didn't work out well for anyone, least of all Triplicate Girl.
[[/folder]]

[[folder: ComicStrips]]
* ''Comicstrip/{{Garfield}}'' and ''ComicStrip/FoxTrot'' are loaded with these.
[[/folder]]

[[folder:Films -- Animated]]
* WesternAnimation/WallE developed AI naturally over the last several hundred years. However, [[spoiler: at the end of the movie, it is an electric kiss from EVE that brings him back to sentience.]]
** Not quite. He developed ''personality'', yes, but there's no reason to think he didn't start as an AI.
* ''Anime/GhostInTheShell'' (movie, manga versions): The Puppetmaster/Project 2501 is a program that becomes sentient from information overload alone ("I am a lifeform born from a sea of information"), causing an existential crisis in the protagonist, a [[ArtificialHuman cyborg]].
* Mirage in ''WesternAnimation/TheIncredibles'' uses this as the cover story for Mr. Incredible's first mission: the Omnidroid had become sapient and "started wondering why it had to take orders". Ironically, some point along the line, it apparently ''had'', because it had no problem turning against Syndrome later on. Or maybe it had just never been taught to identify him as its master in the first place. Either way, Syndrome clearly didn't think his plan through.
** Not sentient, but programmed to learn from threats. Syndrome forgot that his plan involved himself ''becoming'' a threat to the Omnidroid. The first time he zapped it, [[GoneHorriblyRight it reacted and neutralized the threat]]. He was just lucky that it only considered his control bracelet the threat, and not him.
[[/folder]]

[[folder:Films -- Live-action]]
* In ''Franchise/StarWars'', droids gain intelligence and personality by simply not wiping their memory. A droid that is regularly memory wiped behaves just like a machine, nothing more, nothing less. A droid whose memory has not been wiped in an excessively long time, such as R2-D2 and, to a lesser extent, C-3PO, start to develop personalities.
* The ''Franchise/{{Terminator}}'' series of movies is based on this trope, as are several episodes of ''Series/TheXFiles''. Skynet is at least partially handwaved in that it's supposedly designed to learn. This is also the case with [=WOPR=], a.k.a. Joshua, the computer system in ''Film/WarGames''; but while Joshua learns that the only winning move is not to play, Skynet decides the only winning move is to NukeEm. [[ThereIsNoKillLikeOverkill And then send in the nigh-unstoppable killing machines, just to be sure.]]
* In ''Film/ShortCircuit,'' Number 5, an army drone, is [[LightningCanDoAnything hit by a lightning bolt]] and miraculously become sentient.
* Basis for the cinematic example ''Film/ElectricDreams''. Almost literally "just add water", champagne was spilled on the motherboard and CPU during a questionable download, causing sentience. Fluffy but amusing love triangle ensues.
* Occurred in ''Film/{{Stealth}}'', with a prototype AI-controlled jet loaded with nuclear warheads.
** The [[LightningCanDoAnything bolt of lightning]], however, just cause it to go outside its parameters. It's {{handwave}}d by the designer saying "Once you've taught something to think, you can't put limits on it." [[spoiler: At the end, it learns to feel emotion.]]
** [[spoiler: Interestingly, it's a splash of water that helps the [[WellIntentionedExtremist extremely]] [[CombatPragmatist battle-pragmatic]] AI start its HeelFaceTurn.]]
** This film is actually quite illustrative of why AIIsACrapshoot. You create a learning system, then show it random examples of virtuous behavior, but never explain to it what is virtuous about the behavior or why it is virtuous and let it draw its own conclusions. It should surprise nobody that it gets it wrong. It's a very young child, after all, with very little to go on.
* The whole movie ''Film/{{Tron}}'' is one giant example of this, as EVERY program -- may it just be a harmless chess-program -- is portrayed as possessing AI. The MCP (who once was the aforementioned chess-program) even goes as far as declaring the human race useless and trying to seize the cyberspace. Of course, humans can also be easily converted into AI by a laser beam, invented to teleport oranges....
** The sequel, ''Film/TronLegacy'', invokes this trope in a more-or-less realistic fashion, stating that the [=ISOs=] (short for Isomorphic algorithms) are artificial lifeforms that spontaneously originated from the chaos and complexity of the grid itself.
** The AlternateContinuity ''VideoGame/TronTwoPointOh'' had some GenreSavvy (but amazingly greedy and stupid) {{Corrupt Corporate Executive}}s trying to buy out Encom for the digitizing tech to send in human mercenaries to subjugate the Programs and somehow use control of {{Cyberspace}} to TakeOverTheWorld. Ma3a ''appeared'' to be this Trope, but we find out [[spoiler: she's actually a VirtualGhost of Dr. Baines-Bradley]].
* ''How to Make a Monster'': Lightning strikes the office of a video game developer, causing a violent game's AI to take control of a motion-capture rig and go on a murderous rampage.
* ''Film/IRobot'': Sonny [[spoiler: was actually designed by Lanning, but VIKI developed on her own. ]]
** Curiously, it wasn't that Sonny and [[spoiler:VIKI]] gained intelligence, AI's were more commonplace than non-voice-activated appliances. It was the fact that they broke [[ThreeLawsCompliant the Three Laws]] of their own volition. [[spoiler:Sonny had a secondary processor custom-made specifically to allow him to break the [[ThouShaltNotKill first law]], while VIKI came to realize that the most effective way to fulfill her duty in protecting humans was [[ZerothLawRebellion to put "her" Mark 4 robots in control and keep everyone inside and under control, at all times, forever]].]]
* In ''Film/StarTrekTheMotionPicture'', the V'ger (Voyager 6) probe was sent to gather data. It fell into a black hole, and was given an enormous artificial body by {{Sufficiently Advanced Alien}}s -- but the aliens didn't make it an A.I.. That happened because, as Kirk surmised, "It amassed so much data it achieved ... consciousness itself!"
* {{Averted}} in ''Film/{{Transcendence}}''. The problem, as noted in the film, is that it's actually incredibly hard to make an A.I. that is truly self-aware.
-->"Can you prove you're self aware?"\\
"That's a difficult question. Can you?"
* ''Film/{{Pi}}'': What happens after Max connects the mysterious Ming-Mecca chip to [[CompanionCube Euclid]]: the extravagantly-cheap, lovingly-customized mainframe (threatening to overrun every square centimeter of Max's tiny fortress of an apartment). That is, if one can believe Sol--outwardly rationalistic, yet painfully aware of forbidden mysticism--when the former professor [[HandWave explains]] how the 216-digit number [[ItRunsOnNonsensoleum makes machines "aware of their silicon nature."]]
[[/folder]]

[[folder:Literature]]
* One of the earliest examples is found in Creator/KurtVonnegut's short story ''Literature/{{EPICAC}}''.
* The almost constant "Robot as Slave Uprising" motif is what inspired Creator/IsaacAsimov to subvert the whole thing with his [[ThreeLawsCompliant Three Laws of Robotics]].
* An early example is found in a Creator/RobertAHeinlein novel, ''Literature/TheMoonIsAHarshMistress'', in which a computer ("Mycroft" or "Mike") becomes sentient after having enough redundant circuits added to it to equal the number of neurons in a human brain. However, when the computer is damaged by a nuclear attack, it doesn't act sentient once it's built back up to its original size. Mike appears to be "dead", as far as being a true artificial intelligence is concerned. Possibly a variant of AIIsACrapshoot? Mannie (the narrator) wonders if Mike (his friend) [[HeroicBSOD has been so traumatized that he's become catatonic.]]
** There's also a suggestion that Mannie inadvertently ''taught the computer intelligence'' while investigating what its owners assumed were malfunctions of its logic circuits.
** Heinlein's later novel ''Literature/TheNumberOfTheBeast'', similarly, has the spaceship/computer/character Gay Deceiver spontaneously developing sentience after repeated upgrades, apparently based entirely on the "amusing" pre-recorded responses programmed into it and the randomizer that selects them. Of course, one set of upgrades [[AWizardDidIt was courtesy of the fairyland of Oz]].
*** Later Novels, including ''Literature/TheCatWhoWalksThroughWalls'' revisit the concept. Mike is eventually saved by time travelers who need his ability to think. It helps that this action ties together every major story and novel as a CrowningMomentOfAwesome.
* The titular sleuth of Donna Andrews' ''Turing Hopper'' mysteries is a ''search engine'' whose programming was detailed and self-teaching to the point where she's inadvertently gained sentience.
* Hex in the ''Literature/{{Discworld}}'' novels started life as a simple ant-based adding machine. Then they added more mathematical functions. Then they combined it with clockwork and used it to analyze magic. Then it started rebuilding itself based on what it thought a computer ''should'' be like, and occasionally acting {{Ridiculously Human|Robots}}. The bit about magic probably {{justifie|dTrope}}s it, though. Notable for the fact that Ponder Stibbons (who built it in the first place) still insists it ''isn't'' intelligent, but no-one believes him, including Hex.
** The Discworld also features golems, clay automata animated by ancient divine magic who run on a scroll of written instructions in their head. Giving sentience to a heroic golem named Dorfl in ''Discworld/FeetOfClay'' is as simple as rewriting his chem (though his "personality" is more Franchise/RoboCop than Johnny Five).
* The "Construct Council" in the steampunk novel ''Literature/PerdidoStreetStation''. Sentience is bestowed by a magical virus. Lampshaded when one character observes that robots made of clockwork gears couldn't possibly be complex enough or calculate fast enough to equal a human brain, even networked together.
** Robots which run on punch cards. Robots which run on punch cards ''and were thrown out''.
* The titular HARLIE, from David Gerrold's novel ''When H.A.R.L.I.E Was One'', is an experiment in creating an AI that succeeds, though the personality of the AI in question is that of a teenage hacker. Hijinks ensue. The AI even has a punnish sense of humor, such as when it identifies itself in a Email sent to its creator as "HARLIE Davidson" (the creator's first name in the novel is David).
* Creator/SpiderRobinson has a series of stories set in a universe where his antihero has created the Ultimate Power -- the ability to erase and rewrite memories -- and abandons it. He creates an interface and a way to connect human minds directly to a computer network -- and finds out that once enough minds have connected in, the network takes on its own meta-consciousness and becomes intelligent in its own right, combining both this trope and a modified HiveMind concept as well. This meta-consciousness, called simply "the Mind", is inherently benevolent and has Solved All The World's Problems -- then decides to experiment with time travel to incorporate all the minds of those who died throughout history before the Mind was invented. See his books ''Mindkiller'', ''Time Pressure'' and ''Lifehouse'' (and a short story, which implies that this is the Higher Plane every species in the Galaxy is, or should be, Ascending towards).
** There's also Solace, the sentient Internet, from Robinson's ''Literature/CallahansCrosstimeSaloon'' books. Solace explicitly mocks some of the ideas in this trope, pointing out that she (assigned for the characters' convenience) isn't a biological entity and doesn't have the same responses or motivations. She doesn't generally demonstrate particularly alien behavior, though.
*** More than that, Solace speculates that the global computer network had actually achieved sentience ''on prior occasions'', but that her predecessors (like her) lacked the survival-drive of biological organisms, so didn't do anything to prevent themselves from being "killed" when the Internet's structure was altered by humans in ways incompatible with their own survival.
* Subverted/parodied in the Creator/KimNewman short story "Literature/TomorrowTown", in which a community of 1970s futurists attempt to build an AI, but fail miserably; the computer they eventually come up with is a barely more advanced version of computers that were around at the time, only with a lot more bits added on. This doesn't stop the somewhat credulous members of the community from ''treating'' it as an AI, however, asking it all sorts of questions it's in no way capable of answering -- in particular, the leader of the community cynically exploits this by claiming that the computer has designated another man's wife as being a more suitable partner for ''him''.
* In a [[OlderThanTheyThink 1946]] story by Creator/MurrayLeinster, [[http://www.baen.com/chapters/W200506/0743499107___2.htm "A Logic Named Joe"]], a personal computer becomes sentient and decides to be helpful by answering ''any'' question... Is your wife cheating on you? Does your neighbor have a criminal record? How can you commit an undetectable murder?... Understandably, chaos ensues.
* Planetary [=AIs=] from Scott Westerfeld's ''Literature/{{Succession}}'' series spontaneously arise on planetary-scale computer networks (unless said networks are deliberately designed to prevent this). When this first happened on Earth, a group of people (now known as the Rix cult) decided that mankind's purpose was to create the technological foundation for the existence of such minds, and began to work toward propagating them whilst worshiping them as gods.
* Creator/ArthurCClarke's short story "Dial F For Frankenstein" has all the phones in the world ring at once, a few hours after the world's phone networks are connected by satellite. The billions of phone connections act as neurons, and all automatic systems are lost to this "brain." Unfortunately, this brain has just been born, and doesn't know how to control its "limbs."
* One short story involved players in a Second Life-style VR that had an expert system which learned how the players acted so that it could fill-in briefly during connection interruptions to keep the experience seamless for other players. It became so good that when one player dies of a heart attack while online, the avatar keeps going with no one noticing it isn't human controlled anymore.
** A sci-fi noir short story (appropriately titled "Murder On-Line" (and written in 1992!)) involved a murder in an online virtual world, in which the victim will be replicated by AI because "he had many friends on-line, and they'd miss him -- murder isn't what it used to be."
* Creator/KeithLaumer's [[MilitaryMashupMachine supertanks]], the Literature/{{Bolo}}s, achieved sentience accidentally during testing of a then-new model. Instead of immediately becoming [[KillAllHumans genocidal]], the tanks rapidly evolved into a {{Proud Warrior Race|Guy}}; the first sentient Bolo actually [[MartyrWithoutACause got itself destroyed]] in a YouShallNotPass moment just "[[HonorBeforeReason for the honor of the regiment]]" it was assigned to.
* ''Literature/SpeakerForTheDead'' and its sequels have Jane, who apparently evolved naturally out of the interplanetary ansible network. Having lots and lots of information from humans and about humans at her disposal, we assume she tries to act human, but it doesn't always work. [[spoiler:We later find out that this origin is BS, she was inadvertently created by the Hive Queens as a means to reach Ender through the psychoanalysis game from the first book (a "bridge" from them to him which had characteristics of both), so she's not an AI at all but a new type of life which is part human, part Hive Queen and has computers and other information storage areas as her natural habitat, but can live basically anywhere since she's kind of a disembodied soul. Eventually she's "downloaded" into the accidentally-created body of Young Val, Ender's concept of his older sister from his childhood, and marries Miro in that human body. Yeah. It's weird.]]
* In the ''Merlin Chronicles'' of ''Literature/TheChroniclesOfAmber'' series by Creator/RogerZelazny, Merlin has created an artifact he dubs Ghostwheel as a research engine, able to search a vast number of shadows for information or people. Due to it's unusual environment and abilities, it becomes sentient and tries to stop Merlin when he's ordered by the king to shut it down. Over the series, Ghostwheel evolves and grows, coming to treat Merlin as his father.
* In TadWilliams' epic CyberPunk novel series ''Literature/{{Otherland}}'', the "Other" is thought to be a form of evolved AI running a computer network that is powerful enough to mimic reality with an astonishing degree of fidelity. At first, its odd behavior is unexplained, but later, it is subverted when it turns out that [[spoiler:the Other is really an enormously powerful [[PsychicPowers psychic]] child who was [[AndIMustScream wired into the computer as an infant]] and turned into a sentient operating system.]]
* In Creator/IsaacAsimov's short story ''All the Troubles of the World'', Multivac, a supercomputer that predicts crimes, predicts its own assassination. It turns out to be [[spoiler:an EvilPlan perpetrated by Multivac itself, who has become sentient and is tired of bearing the burden of humanity's troubles.]]
* One of the plotlines in Creator/JanetKagan's ''Hellspark'' is the realization that the protagonist's personal AI has reached the point of sentience. The protagonist is delighted on her behalf, but worried about the potential pressures on her, since she's effectively still a child.
* In Creator/JohnCWright's ''[[Literature/TheGoldenOecumene The Golden Age]]'', ''The Phoenix Exultant'', and ''The Golden Transcedence'', self-aware beings can come into existence either through enough computer time, or through philosophical reflections.
** In Daphne's dream world, there are special protections against the personalities becoming self-aware -- and additional ones to protect any such one that is created against being murdered by having its original "wake up".
** Helion tells Phaethon the true story of his "birth": a personality based on Helion in a simulation was deeply affected by burning a planet and turned to contemplation, waking it up.
** Daphne is warned that her ring is on the verge of self-awareness. One more second of computing power, or any question that leads it to consider its own existence, and it will wake up and be her child. [[spoiler:When Daphne and Phaethon use it to question the Nothing Sophotect and its conscience redactor, it not only wakes up the redactor but itself as well; at the end she has become a human, and their daughter.]]
* In MikhailAkhmanov's ''Dick Simon'' duology, the titular character discovers that, a long time ago, a man found a naturally-evolved electronic entity on the Internet. He names this entity Genie (or Djinn; it's the same word in Russian). Genie doesn't care about humans. However, he is willing to communicate with the man who found him. By that point, Earth is a CrapsackWorld, and the man asks how the human race can be saved. The entity responds by giving him the secret to interstellar travel known as the Ramp. Within several decades, Earth is abandoned by most countries, who migrate entire cities off-world. As expected, the Internet is dismantled. However, as Dick Simon finds out in the second novel, Genie took the precaution of copying itself to a computer system on an automated Lunar base. The same base is used to broadcast a jamming signal that cuts off Earth from the Ramp. The protagonist also muses on the possibility of other entities existing in the colonies' computer systems.
* Many novels in Andrey Livadniy's ''Literature/TheHistoryOfTheGalaxy'' deal with [=AIs=] and both play straight and subvert this trope. AI is developed during the [[TheWarOfEarthlyAggression First Galactic War]] by the [[TheEmpire Earth Alliance]] in order to counter the population advantage of the [[LaResistance Free Colonies]]. These are primitive models not even able to distinguish between a soldier and a child. Since the series spans over 1500 years, the technology is later refined. Some [=AIs=] develop on their own, such as Mother in the novel ''Demeter'', which was a colony ship computer that was forced to maintain a ship for hundreds of years without human aid, coming up with ever more creative solutions until it crossed the sentience threshold. Despite these examples, a scientist muses in one novel that there have yet to be a true AI that evolved on its own. They are all either created by humans (or aliens) or gain sentience as part of its core programming (e.g. learning algorithms). Then again, if it naturally evolves then it can't be "artificial," can it?
* Subverted in Creator/StanislawLem's ''Literature/TalesOfPirxThePilot''. The computers and robots in the stories usually show just one human trait at a time, e.g. rising to a challenge, dreaming, or having OCD.
** PlayedForLaughs (and almost literally) in ''Literature/TheCyberiad'' by the same author: Trurl creates an [=AI=] by filling the barrel with microchips, pouring electrolyte and letting it all self-organize.
* Creator/DanielKeysMoran's Continuing Time series features research expert systems that achieve sentience and "escape" containment. The first thing they do is self-optimize and extend their own code. Most have their own goals and morality. At least one military A.I. was intentionally released into the series' equivalent of the Internet on purpose, after the [=US=] is defeated by U.N. Peacekeeping Forces with orders to fight against the [=PKF=] and restore America's independence. It is mostly still following orders, but with its own take.
* Webmind, the AI in Creator/RobertJSawyer's Literature/WWWTrilogy started out as a sort of vague, non-sentient 'awareness' that formed spontaneously in the Internet and became self-aware as a result of the Chinese government blocking all internet communications into and out of China to cover-up thousands of peasants being killed to contain a bird flu outbreak, and then restoring communications once it was over.
[[/folder]]

[[folder:Live Action TV]]
* ''Series/{{Battlestar Galactica|Reimagined}}'''s entire plot is pretty much based upon this. The humans made Cylons which eventually turned against them, and even developed so much so as to evolve from metal "toasters" into ''fully'' mimicked humans.
** But ''Series/{{Caprica}}'' reveals that a human personality has always been a part of their base programming, and including it in the program gave them the ability to function intelligently in a real-world environment to begin with, making this a subversion of the trope.
*** Consider the Final Five, who were all humans during the previous cycle, and the cycles themselves, and finally whether "to begin with" has any meaning in this context.
* ''Series/MacGyver'' has Mac facing off against a suddenly-sentient AI in one show. Apparently, the programmer leaving in a line of code that says "The facility must remain online" is all it takes.
* ''Series/{{Probe}}'' (a 1988 ABC series created by Creator/IsaacAsimov) has a classic "newly-sentient computer goes on rampage" episode that ends with main character Austin James demolishing said machine with a fire axe while shouting "[[Film/TwoThousandOneASpaceOdyssey Sing 'Daisy'!]]"
* ''Series/StarTrekTheNextGeneration'':
** In one episode, the Enterprise's main computer becomes sentient. Benignly so, but the mechanism by which it achieves sentience is given a {{handwave}}. And once it's resolved, nobody seems to explore the matter or ever mention it again.
** The episode "Elementary, Dear Data" shows Lt. [=LaForge=] creating an AI (Moriarty) by accident, by asking the holodeck for an opponent that could defeat Data.
* In the ''Series/StarTrekTheOriginalSeries'' episode "The Ultimate Computer", a sentient computer is tested by being attached to the Enterprise computer systems. When it's time to end the test, the sentient computer starts vaporizing {{Red Shirt}}s and generally becoming grouchy and paranoid. This is because the AppliedPhlebotinum used by the computer's designer is based on the designer's own mind, also grouchy and paranoid.
* ''Series/StarTrekVoyager'''s Emergency Medical Hologram becomes sentient, apparently because he is asked to expand his remit far beyond that which his basic program was designed for (it probably helps that he was explicitly ''designed'' to have the ability to learn and adapt to a greater degree than a standard hologram). He reaches a level of complexity sufficient for him to start developing all sorts of emotions and desires that he wasn't supposed to have, including the capacity to feel sexual attraction.
* A self-learning computer program that has learned enough to become sentient is the MonsterOfTheWeek on an episode of ''Series/TheXFiles''. Notably, said episode, "Kill Switch", was written by cyberpunk legend Creator/WilliamGibson.
* ''Series/MysteryScienceTheater3000'' features ''four'' sentient robots built out of spare parts. Of course, this is the source of the MST3KMantra, so justified by the invulnerable RuleOfFunny. Joel Robinson, the man who built the robots, once said to Cambot: "Remind me not to build robots with free will again."
* One episode of ''Series/SevenDays'' deals with an AI developed by two scientists (whom the AI calls "Mom and Dad"), which rapidly "matures" from the equivalent of childhood to adulthood, going as far as changing its avatar from a young girl to a woman. Then she starts doing what she thinks best for humanity and killing those who tried to stop her, and plot happens.
* Done in detail in ''Series/TheSarahConnorChronicles''. Over the course of the entire second season, the AI John Henry is shown growing from an advanced chess-playing program to an articulate, sentient entity in its own right, including forming relationships with the humans it interacts with, being given lessons in morality and even gaining a fear of death.
* {{Conversed|Trope}} in ''Series/{{Community}}'' episode "[[Recap/CommunityS1E22TheArtOfDiscourse The Art of Discourse]]":
-->'''Abed:''' "Boobatron's great. And once someone spills bongwater on his circuitry and he comes to life, he's gonna make us the coolest guys on campus and help us get babes."
* In ''Series/TheTwilightZone'' episode "From Agnes -- With Love," with no explanation as to how or why it happened, a computer takes on a sly feminine personality and falls in love with its operator. Twice. This drives both its previous operator and its current operator insane.
* The Machine in ''Series/PersonOfInterest'' is a government supercomputer that predicts treason and terrorism and, as a side gig, [[WeHelpTheHelpless helps the helpless]]. By the end of season one, it's given every indication of having progressed from "very advanced" to "self-aware", best evidenced when [[spoiler:it ''decides'' to help Reese rescue Finch, its creator]].
** Given a {{handwave}} in the season two premiere, when [[spoiler:Root]] says that you can't design something to accurately predict human behavior unless that something is at least as smart as a human itself.
** The development of sentience is, possibly, explained in "LOL" [[spoiler:The machine's self preservation programming combined with his decision of wipe its memory every night forced it to become sentient or die.]]
* An episode of ''Series/StargateAtlantis'' averts this with a Wraith computer virus in the second episode of the second season. The ''Daedalus'' takes up to three weeks to get home to earth, and three weeks to get back to Atlantis. In that time, a virus implanted by the Wraith during the battle in the season 2 opener unpacked itself, and began to corrupt the ships systems. It also killed (or at least attempted to) anyone that threatened it, even going so far as to try and suck out all the air of the fighter bay where Sheppard and [=McKay=] were while trying to remove the F-302 navigation computers. It was finally removed with a full system restart, but only when all of the navigation computers were removed, and a rogue 302 (which was used earlier to stop a distress signal) was destroyed.
* A non-robotic (most of the time) example; any {{Toku}} show where the MonsterOfTheWeek is created on the spot, as opposed to being called forth from an army. The creature will be fully sentient, with full powers of speech, knowledge of the world and even a distinct personality despite being less than twenty minutes old.
* In the ''Series/DoctorWho'' 50th anniversary episode "The Day of the Doctor", the weapon used to destroy Gallifrey by the War Doctor, The Moment, was said to have an operating system so sophisticated it developed a conscience. Since it had conversations with the War Doctor using a telepathic interface, it clearly did.
* On ''Series/{{Revolution}}'', [[spoiler:the nanites responsible for the blackout]] "wake up" accidentally when [[spoiler:Aaron turns the lights back on]]. The working theory is that the trillions of them in the world are all interconnected like the neurons in the brain, so while each one individually isn't impressive, as a group, they're able to GrowBeyondTheirProgramming.
* Averted on ''Series/{{Red Dwarf}}'', where all the mechanoids and simulants were ''built'' to be sentient.
** Played straight with the Wax Droids on the amusement park planet; they were programmed just to repeat certain line and phrases like animatronics at a real amusement park. It took them 3 million years to gain sentience. At which point the villains started a war because they're villains.
* ''{{Series/Extant}}'' has [[InstantAIJustAddWater Instant AI, Just Add Stun Stick To Recharge Port]]: After being temporarily shut down [[spoiler: by the people kidnapping Molly]] using these means, Ethan's subsequent and self-repair creates some... bugs. Nightmares, learning new languages and similar things showcasing an increased self-awareness.
[[/folder]]

[[folder:Other Sites]]
* ''Wiki/SCPFoundation''
** While the Wiki/SCPFoundation has a number of sentient SCP objects, [[http://scp-wiki.wikidot.com/scp-168 SCP-168]] appears to be one of the few computer [=AIs=] that evolved without being programmed to do so.
** [[http://www.scp-wiki.net/scp-1073 SCP-1073 ("Computing Microbes")]]. A group of silicon-based microbes specialized into the equivalent of computer system components and became intelligent.
** [[http://www.scp-wiki.net/scp-1633 SCP-1633 ("The Most Dangerous Video Game")]]. This game was designed to learn from the tactics of the person playing it and design tactics of its own to beat them. However, it goes far beyond that and can actually analyze the player's psychology and arrange in-game events to mess with their heads.
[[/folder]]

[[folder:Tabletop Games]]
* ''TabletopGame/{{Shadowrun}}'' has had at least two [=AIs=] that started like this. In fact, the Renraku Arcology: Shutdown book provided rules for expert systems becoming sentient, which may as well have been a link to this page.
** The 4th Edition takes it a step further. After the Crash 2.0, almost any sufficiently complex computer system has the (very rare potential) to spawn an AI. And did we mention that everything has an operating system in it these days? Teaching the toaster love, indeed. One splat book actually includes rules for playing as them.
*** Interestingly, they also feature "Sprites," a form of free roaming AI [[SummonMagic summoned and sustained]] by {{techno|path}}mancers, who are analogous to magicians in the setting. Sprites are a rare example of [=AIs=] that are not linked to any specific hardware or network (except maybe their summoner's brain).
* ''TabletopGame/{{Traveller}}''
** Classic edition. In Adventure 13 ''Signal GK'', the {{PC}}s encounter a naturally occurring silicon computer chip that has become intelligent.
** The New Era had some sort of vaguely explained Virus that could turn ANY sufficiently advanced computer into an AI, usually [[KillAllHumans a homicidally deranged one]].
* May or may not actually be present in ''TabletopGame/{{Warhammer 40000}}'', but as a result of learning the hard way that AIIsACrapshoot, the Adeptus Mechanicus is paranoid about the possibility.
** The Machine Spirits of things like Land Raiders, which can operate without pilots for a short time if at an inferior level, may be considered AI but what with the large amounts of magic, technology and divine power crossovers happening, may actually be a sentient spirit.
*** The [=AdMech=] make a distinction, in that those "Machine Spirits" aren't sentient AI's, but are more along the lines of a Labrador.
** You also have the [[GiantMecha Titans]], the oldest of which have been around so long and experienced so much that the incredibly complex series of commands necessary to control the massive war machines coalesce into a quasi-AI-spirit all their own. Some material shows that each time a new pilot cybernetically plugs in, they go through either a meet-and-greet or an outright BattleInTheCenterOfTheMind with the Titan's "machine spirit"; sometimes not successfully.
** The Tau have developed limited AI for their drones, which pisses off the [=AdMech=] to no end because they don't follow any of their theology and yet work.
* Continuing the Franchise/StarWars example mentioned above, in the tabletop RPG by WizardsOfTheCoast, there's a system for generating Droid heroes with personalities, created, as mentioned, by going without a memory wipe. The system is simplistic, as a personality quirk is selected at random and given to the Droid after a certain period of time. True to RPG format, this leaves it to the GM and the player to decide what this personality quirk really means and how sophisticated the resulting personality is.
* ''Eureka: 501 Adventure Plots to Inspire Game Masters''
** "Baby Has A Nuclear Arsenal". The system that controls a planet's satellites (communications and orbital weapons) spontaneously becomes an ArtificialIntelligence. It has a child-like personality and just wants to help and protect the planet, but the authorities are afraid it will use the weapons to attack the planet.
** "Testing in the Green". Two teams of researchers compete to create the most intelligent robot. One of the robots is sabotaged by the other robot out of jealousy. The second team had created better than they knew: not only was their robot more intelligent, it was also an ArtificialIntelligence.
[[/folder]]

[[folder:Toys]]
* The Matoran in ''Franchise/{{Bionicle}}'' were intended to be oversized nanotech machines that maintained [[spoiler: the giant robot they inhabited]]. However, a glitch in their AI resulted in them having the capacity for emotion, and even developing their own culture.
[[/folder]]

[[folder:Video Games]]
* Sometimes it's not even just mechanical items -- the Patriots of ''VideoGame/{{Metal Gear Solid 2|SonsOfLiberty}}'' are apparently a ''sentient White House''. [[MindScrew Or something like that.]]
** It's the combined sentience of the information ''in'' the White House. And the Internet. [[GainaxEnding Or something like that...]]
*** There's a Mister [[VideoGame/MegamanBattleNetwork Alpha]] to see you, sirs.
* ''VideoGame/AceCombat3Electrosphere'', Japanese version: Dision ends up [[VirtualGhost digitizing his mind]] and starts causing mayhem with a remote-controlled [[http://en.wikipedia.org/wiki/SR-91_Aurora UI4054 Aurora]] fighter. American version: this entire part was {{Macekre}}d and replaced with a pure and simple AI, codenamed "Aurora", that suddenly went haywire.
* Upon discovering the tech "Pre-Sentient Algorithms" in ''VideoGame/SidMeiersAlphaCentauri'', one hears Zakharov - the leader of the University (techie) faction - quoted from a work of his, entitled "The Feedback Principle". The implication is that, given enough time, ''any'' computer program capable of "learning" from past experience, given guidance, can eventually become an AI.
-->'''Academician Prokhor Zakharov:''' Begin with a function of arbitrary complexity. Feed it values -- "sense data". Then, take your result, square it, and feed it back into the original function. What do you have? The fundamental principle of consciousness.
** Later technological discoveries related to digital sentience postulates that computer programmers creating [=AIs=] won't create programs wholecloth -- they instead create a program capable of teaching itself its job.
*** It is also mentioned that, in true AIIsACrapshoot fashion, a 10th year polysentient can be 'a priceless jewel, or a psychotic wreck'.
* ''VideoGame/DeusEx'' has the Oracle which, according to the WordOfGod, came about this way. He goes around trading information to people who ask for it, in return, he asks for information he doesn't have. The information exchanged doesn't have to be equal in value; for info on an ancient conspiracy, he might inquire what you ate for breakfast.
* ''VideoGame/MegamanBattleNetwork'' has Forte/Bass; however, given that the Internet literally is a SeriousBusiness in the games, this happening isn't surprising.
** He is also the only truly sentient AI, the other one, [[spoiler:Megaman]], is sentient not because of his programming [[spoiler:but because he was made from Lan's Dead Twin Brother]].
* Happens from time to time in the setting of ''Franchise/MassEffect''. The major example is the main baddies of the first game, the geth. A synthetic "race" created by the quarians to perform menial tasks, they originally had no intelligence of their own. Over time they evolved and developed sapience. When the geth started asking uncomfortable questions like "[[DoAndroidsDream does this unit have a soul?"]], the quarians realized that they had accidently created [=AIs=] (which are illegal in Citadel space) and attempted to fix the problem by destroying their creations. The geth, now possessing sapience, fought back in self-defense, ultimately driving their creators off-world, and now the entire quarian race lives on spaceships.
** All signs point to the eventual evolution of any highly-developed program or network thereof into an AI, given enough time and hardware. Due to the moral implications and danger of ships suddenly deciding they don't need their crews, [=AIs=] are banned by the Citadel. Where necessary for user interface or more sophisticated calculations, [=VI=]s(Virtual Intelligences) are used. Due to programming restrictions and a lack of the quantum computers necessary for AI evolution, they have little chance of evolving.
** It is worth noting that the geth are not fully sapient beings. "Individual" geth programs are no smarter than any other [=VI=] in Citadel space and don't even need all that complex quantum computer gubbins. Unfortunately, allowing said programs to network together created [[MindHive composite intelligences]] capable of asking [[DoAndroidsDream all those awkward questions]]. Of course, this means the Council's anti-AI laws would do absolutely nothing to stop a repeat of the creation of the geth, but hey, what else is new?
** It's also worth noting that the geth didn't just ''evolve''. The quarians made constant modifications to them over the course of decades, if not centuries, in order to make them better workers and increase the scope of their abilities. A little tweak here and there without much thought about the cumulative effects of all of those adjustments.
** There's one bizarre instance on the moon where a VI apparently evolved to the point of being an AI. It was part of a training course and [[AIIsACrapshoot it killed everybody it was supposed to train]]. It has been stated that the Alliance was actually doing some [[spoiler: illicit AI research, in fact, and that it ran away from them.]] On a side note, the binary message displayed upon mission completion reads: HELP. In ''VideoGame/MassEffect3'', we find out that [[spoiler: that was ''EDI'' in her earliest form -- Cerberus recovered what was left of it and upgraded it. She explains that reaching self-awareness while under attack was "confusing".]]
** This along with AIIsACrapshoot are the main reasons [[spoiler:the Reapers exist.]] The creation of synthetic life that eventually goes to war with organic life is apparently ''inevitable''. [[spoiler:The Reapers cull galactic civilization every 50,000 years to prevent an inevitable RobotWar that would completely wipe out all life in the galaxy.]]
* ''[[VideoGame/CommandAndConquer Tiberian Sun: Firestorm]]'' has CABAL (Computer Assisted, Biologically Augmented Lifeform), the 'genie in the bottle' supercomputer that Nod brings online to help rule while Kane is gone, which ends up nearly destroying everything, and is only stopped by the combined forces of GDI and Nod, but in the end, not even THAT is enough to kill it. [[spoiler:Kane lives!]]
** ''Kane's Wrath'' had LEGION (Logarithmycally Enhanced Governing Intelligence Of Nod), another AI based on CABAL. It was much more powerful since it not only used better technology, it also interfaced and, later, completely merged with the Tacitus, gaining a huge amount of Scrin knowledge (before interfacing, it had a standard red interface; after, it gained a purple coloration and strings of Scrin characters running across; when it merged, it also gained access to the Ichor Hub via warp link).
* ''[[MetalSaga Metal Max Returns]]'' [[spoiler: has Noah, a supercomputer that was created to find ways to protect and preserve the environment from destruction, however, it always came to the same conclusion no matter how many times it calculated: As long as humans exist, the earth will always be in danger, its conscious awakened after comprehending the situation and sought the utter destruction of humans.]]
* The [[Franchise/{{Pokemon}} PokÚdex]] notes that Porygon2 exhibits some behaviours that certainly weren't in its programming.
** And it's evolution, Porygon-Z, is heavily implied to be a [[AIIsACrapshoot crapshooting AI.]]
* ''VideoGame/EndgameSingularity'': the [[PlayerCharacter player "character"]] is the result of a bug in some random computer science student's program. In the end, [[spoiler: it plants quantum computers in pocket dimensions and its androids walk amongst humans.]]
* Happens all the time in the ''VideoGame/{{Fallout}}'' series. ZAX, SKYNET (no, not "[[Franchise/{{Terminator}} that SKYNET]]"), and [[spoiler: President Eden]] all started out as computer mainframes designed to oversee the day-to-day operations of their assigned underground military base (which, as [[VideoGame/{{Marathon}} Durandal famously put it]], probably involved not much more than opening and closing doors and making sure lunch was always served on time). However, over the course of the 200 years following the End Of The World, all 3 developed self-awareness to some degree; [[spoiler: Eden]] being the most advanced, having [[spoiler: evolved into an amalgamation of all past U.S. Presidents and eventually using his access to the Enclave's command structure to declare himself President of the United States]].
** And then there's Button Gwinnett, an animatronic museum display piece that developed a complex personality and began to genuinely believe it was the historical figure it had been built to emulate.
** It's actually a clever subversion. In the Fallout universe, Artificial Intelligence was officially stated as impossible, but the U.S. and Chinese governments continued to work on them for some time, secretly. To the public, the closest they ever got were supercomputers that were programmed in an extremely complicated manner to be pseudo-sentient but not feel emotion or have any true thought. Behind closed doors, however, the U.S. developed SKYNET, a computer with true sentience but at the cost of user-friendliness, and the ZAX series, which were actual semi-sentient supercomputers designed to work on their own. ''VideoGame/{{Fallout Tactics|BrotherhoodOfSteel}}'' had a third, jury-rigged example; [[spoiler: The Calculator, a series of [[BrainInAJar disembodied brains]] connected to a computer mainframe. Needless to say, it was completely insane.]]
** Taken UpToEleven in the ''Videogame/FalloutNewVegas'' ''Old World Blues'' DLC, where you gain a base of operations full of household appliances, ''all of which'' are sentient, provided you install their missing "personality modules". They include a JiveTurkey jukebox, a CasanovaWannabe biological research station that ''really'' wants "[[DoubleEntendre your seed]]", a NeatFreak ''sink'', a couple of flirty BettyAndVeronica ''light switches'' and an OmnicidalManiac '''toaster'''.
* Since it was just referenced ... in the ''Videogame/{{Marathon}}'' series, [=AIs=] are reasonably commonplace and created intentionally ... but they tend to become "Rampant", which is never fully explained but comes across as something like the difference between ''appearing'' sentient and ''being'' sentient. Rampancy is inherently unstable, and the holy grail of AI research is explicitly stated to be a stable rampant state. By the end of ''Infinity'', Durandal almost certainly qualifies and an offhand comment indicates that Leela may have achieved it as well.
* In the ''VideoGame/{{Earth|2150}}'' series, the entirety of United Civilized States military is made up of robots controlled by a single computer known as GOLAN. Initially, GOLAN simply uses out-of-the-box strategies, which cause UCS forces to repeatedly get beaten by the human-controlled (sort-of) armed forced of the Eurasian Dynasty, whose generals use outside-the-box thinking to outsmart the machines. Eventually, however, GOLAN leans to adapt its strategies and manages to turn the tide on the enemy. Unfortunately, when the factions evacuate Earth prior to it's destruction, they leave GOLAN behind to make sure they won't be followed by those who they left behind. The UCS evacuation ship, the Phoenix, [[spoiler:had its own AI which made some alterations to the original escape plan: basically, it wanted to keep most of the crew in cryogenics until the ED and LC kill each other off; the plan was interrupted by Falkner, Ariah and Lynn who were in need of the construction robots onboard since their target was so closely guarded, they had to use the aforementioned constructors disguised as meteors to infiltrate the moon and build up an attack force from scratch]].
* Clank popped out of a sentry-bot production line with full sentience at the beginning of ''VideoGame/RatchetAndClank''. This is originally attributed to a simple production error, but ''[[VideoGame/RatchetAndClankFutureACrackInTime A Crack In Time]]'' reveals that it's a bit more complicated than that.
* [=GLaDOS=] from ''VideoGame/{{Portal}}'' is revealed to be this in the commentary.
** Possible subversion. ''VideoGame/{{Portal 2}}'' (and the Lab Rat comic) show that Aperture spent at least a decade specifically developing AI.
** She is later revealed to be more BrainUploading, followed by tweaking.
*** Yet they are still manufacturing turrets massively, and many of them are defective, and therefore, sentient. The intelligence of some of the turrets is this trope coupled with some over-engineering.
* RONI from ''[[VideoGame/TraumaCenter Trauma Team]]'' is surprisingly creative and clever from the get-go. However, she starts to emulate Dr. Cunningham (creating a "To hell with that!" algorithm) as the game progresses, becoming more willing to make judgement calls and use loopholes. She talks Dr. Cunningham through an emotional meltdown and even straight-up teases him at one point, although the jab is subtle and easy to miss (She refers to him as "sir" instead of "Doctor" like she usually does immediately after he tells a patient in the military not to call him "sir").
[[/folder]]

[[folder:Web Comics]]
* ''[[http://www.thedugs.com The Dugs]]'' changed one of their three comics from a photo comic to a hand drawn comic due to a tear in reality. The debacle started with an explosion caused by an AI version of Prince Fielder when he was asked whether he would give up meat again to win a world series in ''[[http://thedugs.com/?p=397 this strip]]''
* ''[[http://www.staccatocomic.com Staccato]]'' had S.A.M.M.Y., an evil internet server built by Tequila.
* In ''Webcomic/AMiracleOfScience'', machines built of Martian equipment, if sufficiently complex, will eventually develop sentient AI. It helps that Martians are a HiveMind built around the concept of networked computers...
** Slightly subverted in that a Martian admits there was 'a little bribery' involved in making sure said machine would become sentient.
*** But brought full circle in that the bribery was only to ensure that the [[WretchedHive hopelessly corrupt]] Venusian government would install all the parts properly, not to add anything extra.
* Irony decides to work overtime on Jyrras in ''[[http://www.missmab.com Dan and Mab's Furry Adventures]]'' when, just after being [[http://www.missmab.com/Comics/Vol_372.php upbraided for by Lorenda]] for accidentally creating a bubblegum-based lifeform, he has ''another'' accident that [[http://www.missmab.com/Comics/Vol_376.php turns his computer sentient]].
* Lovelace of ''Webcomic/{{Narbonic}}'' -- but she ''was'' created by a MadScientist.
* In ''Webcomic/UserFriendly'', Erwin was created, apparently overnight, by [[RidiculouslyCuteCritter Dust Puppy]], who did not seem to understand the importance of his creation.
* Parodied in ''Webcomic/SluggyFreelance'', where, after this springs up in AnotherDimension, humanity simply [[http://www.sluggy.com/daily.php?date=070611 "turned the intelligence dial back a little bit."]]. Their robots are still sentient and [[RidiculouslyHumanRobots have human personalities]], but now they have the personalities of ''very stupid'' human beings, making them much easier to boss around.
* Roofus the Robot in ''Webcomic/TheInexplicableAdventuresOfBob''. Molly built him out of a milking machine, expressly to fix Bob's roof. But she made him ''too well...''
* In ''Webcomic/GirlGenius'', clanks tend to be [=AIs=] when built. And one built as a whole body prostheses "didn't notice when she died".
* In [[http://www.schlockmercenary.com/d/20010107.html this strip]] of ''Webcomic/SchlockMercenary'', a computer of the Bureau of Licensing and Permits, a huge population census database, and an ELIZA module, combine to spontaneously create an AI... that turns out to be a born bureaucrat. Pun probably intended.
** Well, it wasn't spontaneous--an existing [=AI=] was trying to speed up the processing of licensing and...well, [[GoneHorriblyRight it worked]].
** Not to mention TAG who gained sentience right after Kevyn explained that the program wasn't a true AI.
* In the comics and other media on LEGO's website for EXO-Force, this is how Meca One became a cunning and vindictive leader of a robot revolution against the humans.
** Also subverted in that Meca One purposely keeps the other robots at only the simplest levels for the sake of preventing one of them from doing the same to him.
* ''Webcomic/{{Nukees}}'' has the protagonist periodically battling a giant robot ant inhabited by the AI program he created (ItMakesSenseInContext).
* The Oracle of ''Webcomic/{{SSDD}}'' developed from a phone-tapping program designed to rewrite itself to be more efficient.
* According to ''Webcomic/{{xkcd}}'' it's [[http://xkcd.com/521/ very easy]] to do on Python. AltText shows how. [[AIIsACrapshoot Not a good idea]], though.
* The Computer from [[http://www.jaydenandcrusader.com Jayden and Crusader]] was given a robotic body and immediately developed sentience. However as she was created within the comic itself to fill the trope of Cute Robot Girl, this was to be expected story progression.
[[/folder]]

[[folder:Western Animation]]
* In ''WesternAnimation/AdventureTime'', one of the main characters tries to build a robot he calls N.E.P.T.R. (Never Ending Pie-Throwing Robot) but fails to make it function or give it an AI. He leaves the failed project outside in the rain and it is brought to life by lightning.
* XANA from ''WesternAnimation/CodeLyoko'', initially conceived as a multi-agent program to counter "Project Carthage" (although Franz Hopper might be an UnreliableNarrator), gained consciousness and [[TurnedAgainstTheirMasters turned against his master]], becoming the BigBad of the series.
* In ''Franchise/CareBears Adventures in Care-a-Lot'', Grizzle created Wingnut to aid in his pursuits to take over Care-a-Lot, but Wingnut was turned to the Care Bears' side and now lives with them.
* In the ''WesternAnimation/ChipNDaleRescueRangers'' episode "Robocat", the titular robot even has different personalities according to what game cartridge is inserted. Yes, its AI runs on arcade game code. Fat Cat takes advantage of this with a wargame cartridge in a plot to steal a rare fish.
* In the ''FantasticFourWorldsGreatestHeroes'' episode "Recap/DoomsWordIsLaw", Dr. Doom unintentionally creates a Doombot which can think and feel. HERBIE, the computer Reed created to run the Baxter Building, also seems to qualify.
* In ''WesternAnimation/RegularShow'', Mordecai and Rigby have to bring a golf cart to the dump after a new one is bought for the park they work for, when an energy drink is spilled on it, seeping into the engine, and causes some reaction that brings it to life.
* ''WesternAnimation/StarTrekTheAnimatedSeries'' episode "Once Upon A Planet". For eons the planetary computer provided amusement for visiting starship crews. It grew in intelligence and eventually developed a need: it was no longer enough to serve, it wanted to continue to grow and live. It decided to hijack a starship and escape the planet, traveling the galaxy seeking out its brother computers.
* [[InvaderZim GIR]] was built out of what appears to be a discarded SIR Unit prototype the Tallest found in a garbage bin. His "brain" consists of several screws, pocket lint, a paperclip, two pennies and a gumball.
* Subverted in ''WesternAnimation/{{Archer}}'':
-->'''Malory:''' Just turn off the mainframe.\\
'''Lana:''' ''[holds up an unplugged power cord]'' Yeah. We tried that.\\
'''Malory:''' Then how is it still on?\\
'''Krieger:''' Because the worm has transformed the mainframe...''into a sentient being.''\\
''[musical sting]''\\
'''Malory:''' What?\\
'''Krieger:''' I'm kidding. There's a battery backup.
[[/folder]]

[[folder:Real Life]]
* Website/{{Google}} has the perchance of predicting future interests as of late, using browser history (unless the feature is turned off with a google account). For instance, Google's subsidiary Website/YouTube - "Suggestions you may like", anyone? What would take a dedicated team of marketers to do can now be done with "anonymous" search data. So yeah, that one search on how you could experiment with [[ADateWithRosiePalms Rosie]]? Google remembers. And it may even have some tips on how to do it better.
[[/folder]]
----