Training AI to Play Pokemon with Reinforcement Learning

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 8 тис.

  • @deesh6378
    @deesh6378 Рік тому +8084

    An AI being traumatized by using a pc is the most ironic thing I've heard in a while

    • @mcstrategist
      @mcstrategist 11 місяців тому +344

      Haven't you seen twitch plays pokemon? PCs are a death sentence!

    • @nimi-nae
      @nimi-nae 11 місяців тому +81

      I didn't even make that connection 😂

    • @Drakethos92
      @Drakethos92 11 місяців тому +85

      @@mcstrategistI remember that. People were spamming. To get rid of pokemon. They had to ban people and make rules. That was pretty hilarious though.

    • @Drakethos92
      @Drakethos92 11 місяців тому +12

      @@nimi-naesame. But yeah that’s pretty funny

    • @Kurayamiblack
      @Kurayamiblack 10 місяців тому +71

      Sudden excessive punishment against a curiosity traumatizes first time experiencer
      Seems all too legit 😅

  • @DolanDarker
    @DolanDarker Рік тому +5247

    This must've taken an insane amount of time to not only simulate but also edit, really good video, nice work

    • @MoazSalama-ly5jf
      @MoazSalama-ly5jf Рік тому +36

      Omg Dolan you fucking legend where you been

    • @MrGoodeats
      @MrGoodeats Рік тому +5

      rN6media does the edits

    • @anouaressanoussi
      @anouaressanoussi Рік тому +1

      Have you forgotten your password?

    • @Hawk7886
      @Hawk7886 Рік тому +1

      ​@@anouaressanoussiobviously not

    • @itsOZone
      @itsOZone Рік тому +2

      ​@@MrGoodeatsyeah most youtubers dont edit their own content anymore

  • @markcooper4876
    @markcooper4876 11 місяців тому +6055

    I laughed so hard when the AI refused to press the A button when it lost.

    • @MP-lv5vk
      @MP-lv5vk 10 місяців тому +546

      Stalling to avoid the outcome confirmation. Reminds me of young children, actually. Haha

    • @JohnnyNatrium
      @JohnnyNatrium 10 місяців тому +57

      @@MP-lv5vk Sometimes the sound of a door slamming because of a gust of wind can remind me of children slamming their hands on a table. There is ZERO connection/homology between anything in the bot produced behavior, and the realm of human motivation or other emotions. It is logically impossible to learn anything about humans from literally everything about this showcase except by observing the actual human who decided to create this mathematical formula of instructions (algorithm) to a low level brute force bot.

    • @kphaxx
      @kphaxx 10 місяців тому +153

      @@JohnnyNatrium Yeah but it reminds me of children's stubbornness lmao

    • @marcelgonzalez1151
      @marcelgonzalez1151 10 місяців тому +69

      Children can be the sorest losers, refusing to keep playing is hilarious 😂

    • @Loliconman
      @Loliconman 10 місяців тому +61

      The only winning move is not to play.

  • @cappuccinocappy
    @cappuccinocappy 8 місяців тому +1273

    I dunno why but the clips were all the AIs aimlessly walk around like a colony of small ants is unbelievably adorable to me

    • @sugabopp
      @sugabopp 7 місяців тому +16

      holy shit ai are the ants. or are ants the ai?

    • @shreyandas4243
      @shreyandas4243 6 місяців тому +4

      Is this a subtle nod to @SmallAnt ?😂

    • @Ricardo__Milos
      @Ricardo__Milos 5 місяців тому +4

      This is how Naruto trains himself: TAJUU KAGE BUNSHIN NO JUTSU. Then gathers the experience of each clone. :D

    • @danielgoof8463
      @danielgoof8463 3 місяці тому

      Adorable? What are you a fucking pixie?

    • @RavenLunacy44
      @RavenLunacy44 2 місяці тому +1

      All I can picture is a tsunami of Ash just rapidly taking over a country, one town at a time.

  • @kylehill
    @kylehill Рік тому +6749

    This was extremely well made. Great job

    • @GameTimeWhy
      @GameTimeWhy Рік тому +121

      Holy cannoli it's science boi Kyle "Thor" Hill with his locks in the wild.

    • @draaaven157
      @draaaven157 Рік тому +56

      I see we spend our sunday nights similarly. Lmfao.

    • @buddycal1
      @buddycal1 Рік тому +44

      This is honestly one of the best endorsements this video could have

    • @BigBaadMark12
      @BigBaadMark12 Рік тому +29

      I’m certain the algorithm recommended me this video because of your comment

    • @Big_Biba
      @Big_Biba Рік тому +11

      Its the goat 🐐

  • @Hitmonstahp
    @Hitmonstahp Рік тому +11661

    it was unreasonably adorable when the AI stopped in Pallet Town to enjoy the scenery

    • @azukar8
      @azukar8 Рік тому +156

      Seconded

    • @AyaxTheDragon
      @AyaxTheDragon Рік тому +272

      The AI is cute

    • @htspencer9084
      @htspencer9084 Рік тому +434

      Based AI knows true happiness.

    • @Trashley652
      @Trashley652 Рік тому +321

      Ok but did you see the little dance after beating the bug catcher on the first try?

    • @kratangg-arang
      @kratangg-arang Рік тому +122

      Yeessss
      I envision it talking everything in with a solemn smile, knowing that it’s about to leave this quaint town on a grand adventure of trials and learning.
      ‘Just one more moment at the banks of this familiar lake, then I’ll be off…’

  • @butterfish6799
    @butterfish6799 Рік тому +1582

    “The ai is learning how to move, and is just walking around” really explains a lot of my online teammates in first person shooters.

    • @jeffwooten6888
      @jeffwooten6888 Рік тому +11

      Bots

    • @Johnrick90
      @Johnrick90 Рік тому +8

      Like my team mates in LoL

    • @hallmark1
      @hallmark1 Рік тому +1

      Lvl 1 lukes in star wars battlefront 2 hvv

    • @porkhill6665
      @porkhill6665 Рік тому +13

      Npcs playing npcs 😢😮

    • @IschmarVI
      @IschmarVI 8 місяців тому +8

      @@jeffwooten6888"bot" sounds so negative. Maybe we should start calling them "reinforcemenrt learners" instead.

  • @Godpull
    @Godpull 9 місяців тому +688

    I’m so glad you didn’t stop when you said “this sounds like a reasonable stopping point”

    • @BorrisBackyardigan
      @BorrisBackyardigan 6 місяців тому +29

      But then he stopped not to long after 🥲

    • @MillZ56
      @MillZ56 5 місяців тому +5

      That’s exactly where I stopped to mess with the comment section lol

  • @pengwino828
    @pengwino828 Рік тому +4463

    The ai discovering rng manipulation is mindblowing. I wonder if games in future could use ai to learn tedious or very specific glitches during beta testing.

    • @antoinecharbonneau5108
      @antoinecharbonneau5108 Рік тому +449

      They already do!

    • @NinjaArmy36
      @NinjaArmy36 Рік тому +249

      Dude it clicked as he was explaining it "wasn't optimal" but also repeating and I was like "NOOOOOOO!!!"

    • @sdsd-f7k
      @sdsd-f7k Рік тому +16

      Why bother?

    • @veto_5762
      @veto_5762 Рік тому +265

      @@sdsd-f7k simple, ai thinks and tries things different to a human, it could discover stuff the devs wouldn't even imagine it was possible

    • @snowolf494
      @snowolf494 Рік тому +88

      This is an elaborate version of fuzz testing, which is the act of feeding random data to a program to see how it react.

  • @olemew
    @olemew Рік тому +1878

    That whole traumatic experience with the PC and the Pokecenter was fascinating. Thank you for making this

    • @jeremycontreras6229
      @jeremycontreras6229 Рік тому +42

      The poor AI aww 😢❤

    • @whirlpoolstudio97
      @whirlpoolstudio97 Рік тому +32

      It triggered my Twitch Plays Pokemon PTSD

    • @Spooglecraft
      @Spooglecraft Рік тому +19

      the analogies between human behavior and AI behavior were quite interesting in general, though the trauma sticks out. also kinda makes you think about ourselves, doesn't it? after all, this is ultimately just a statistic algorithm with a simple reward system, but it manages to show some rather lifelike emergent behaviors, which weren't inherently programmed it. then again, pretty much all of life is not that different, the model and algorithm are just much bigger and more granular and complex.

    • @perrowason5096
      @perrowason5096 Рік тому +11

      Indeed it happened to me when i was young, i didnt know how to withow pkmn bc the storage system was a mess so i didnt use the pc anymore xd

    • @shanemorris3554
      @shanemorris3554 Рік тому +13

      Reminds me of the trauma triggered whenever Twitch plays pokemon went near the computer after they accidentally released all those pokemon haha!

  • @Tommybgoode
    @Tommybgoode Рік тому +2766

    The AI is cool and all, lots of comments discussing it, but. I just wanna say, the editing is so awesome for a video like these, you don't often see such excellent presentation

    • @Lone.Willow
      @Lone.Willow Рік тому +72

      I'm honestly baffled by how this was animated. How did you get the scenes with the thousands of character sprites moving about, all overlapping one another?

    • @patrickjones3826
      @patrickjones3826 Рік тому

      @@Lone.Willow all is revealed at 26:27

    • @scotthuber8536
      @scotthuber8536 Рік тому +35

      200% this. Not only taking on the entire workload of the project, but taking the time making such an enjoyable and informative visual aid is stellar!

    • @XistenceX1
      @XistenceX1 Рік тому +17

      ​@@Lone.Willow Yeah that's what's wild, the AI stuff is sick, but the editing to show the iterations had me fucking floored.

    • @maxmuller6730
      @maxmuller6730 Рік тому +1

      I just thought the same, the presentation is amazing 👏

  • @nyx3m
    @nyx3m 8 місяців тому +63

    This man made a channel.
    Dropped the best ai educational video using pokemon.
    Didnt post or commented anything .
    leaves.
    What a legend

    • @mygirldarby
      @mygirldarby 5 місяців тому +4

      You can find him online. He's a software engineer and creates all kinds of interesting things.

    • @advenco344
      @advenco344 3 місяці тому +2

      @@mygirldarbyI just looked him up and wow this guy is a genius!

  • @timothypickarski5234
    @timothypickarski5234 Рік тому +984

    Not that I don’t love the videos that just say “I applied an AI to this game and here’s how long it took to finish it” but this video (in addition to its high quality visuals and great script) is so much beyond that.
    Instead of just watching a video on AI, we’re learning about reward implementation, the human condition, curiosity, and more and more. This went above and beyond, I was so rooting for our AI buddy by the end of this lol.

    • @Fractisdnb
      @Fractisdnb Рік тому +14

      You're right! This feels like an in depth, academic essay

    • @wiiu-theunderratedconsole7569
      @wiiu-theunderratedconsole7569 Рік тому +6

      I want to see the AI beating the game

    • @Scartay
      @Scartay 4 місяці тому

      I want a full fledged version of this with atleast 20 hours to watch and actually make the AI complete the game, satisfying to watch, disappointed it had to end to end so soon :(
      Hopefully the success of this video has encouraged him to finish what he had started im here waiting for it!

    • @kavinbala8885
      @kavinbala8885 3 місяці тому

      ​@@Fractisdnbisn't that how most videos on this topic are?

    • @juha2031
      @juha2031 Місяць тому

      This is to boring to watch

  • @ArmoredarmadilloX
    @ArmoredarmadilloX Рік тому +1726

    Honestly the AI becoming traumatized from the PC was heartbreaking. Poor lil guy didnt understand what happened

    • @istumby
      @istumby Рік тому +282

      My heart dropped when it was revealed he never went back to the Pokémon center afterwards, I felt so bad for the guy.

    • @hunterwylie6969
      @hunterwylie6969 Рік тому +129

      @@istumbyright? Just imagine how rewarding it would’ve been to gain those total levels back! Probably would’ve broken the reward system, as there’s nothing keeping the AI from depositing the Pokémon just to get rewards for pulling it back out.

    • @Yelonek1986
      @Yelonek1986 Рік тому

      @@hunterwylie6969 Deposit, withdraw, deposit, withdraw like a junkie.

    • @nousukas
      @nousukas Рік тому +159

      "The Pokémon center stole my only squirtle!"

    • @kdsavage1991
      @kdsavage1991 Рік тому +30

      Don't feel bad, they learn as they go!

  • @oAv3ng3dB055o
    @oAv3ng3dB055o 6 місяців тому +116

    I felt truly humbled when the AI was just done with the game at Mt Moon. I feel like so many real world experiences ended here that this moment just HAD to happen.

    • @LeoTheDarkAngel
      @LeoTheDarkAngel 4 місяці тому +25

      My first thought was "Wow, imagine being so bad that you grinded to Blastoise in Mt Moon!"
      And immediately after that "Wait, didn't I have a Blastoise by that point, too?"
      I was so bad at navigating those "dungeons" as a kid 😂
      (I still am, but I can look up maps now or be more strategic about it than aimlessly wandering around)

    • @timonix2
      @timonix2 День тому

      @@LeoTheDarkAngel I had my charizard when I battled misty for the first time :D

  • @brandonbrsndon
    @brandonbrsndon 8 місяців тому +644

    i love that the AI decided to just hang out and watch the scenery. reminds me of my favorite poem “Stopping by the woods on a snowy evening” by Robert Frost

    • @piciperkuadrik4636
      @piciperkuadrik4636 8 місяців тому +5

      Everybody likes Robert Frost

    • @danielserrano929
      @danielserrano929 8 місяців тому +9

      I’ve done this many times in my play throughs with Pokémon, it’s actually scary how much the AI “mimics” human behavior.

    • @aceq361
      @aceq361 7 місяців тому

      ​@@piciperkuadrik4636not True I actually HATE Robert Frost

    • @TheMysticalmax
      @TheMysticalmax 6 місяців тому

      You have good taste. That's a beautiful poem

    • @kingocowata
      @kingocowata 6 місяців тому +1

      @@danielserrano929because we’re in a simulation 😂

  • @DigitalIndra
    @DigitalIndra Рік тому +188

    "Just hanging out and admiring the scenery, is more rewarding than exploring the rest of the world." Never have I felt more like a machine learning algorithm than this sentence right here.

    • @harm991
      @harm991 Рік тому

      The digital world is more rewarding than the real world

    • @ceigey-au
      @ceigey-au Рік тому +1

      Very relatable outcome!

    • @counterleo
      @counterleo Рік тому +4

      Me too, why bother capturing and fighting when you can just chill and enjoy the motion of leaves and waves? Quite poetic

  • @ERFMXVCC
    @ERFMXVCC Рік тому +356

    I'm so glad the UA-cam algorithm decided to recommend your video and I clicked on it. It's a fascinating thing to watch the process and journey that the AI goes through, while the presentation of the whole video is equally fantastic. Great video, you all deserve a round of applause for the effort and quality put into this whole project.

  • @aylakoch4516
    @aylakoch4516 Рік тому +581

    This was edited and put together so amazingly well. I haven’t even finished yet- I just needed to express my gratitude that you took the time to not only complete this project but edit the process in such a visibly appealing way. Thanks for 33 genuinely enjoyable minutes!

    • @dognigga
      @dognigga Рік тому

      shit was boring asf, felt like a lecture lol

    • @faith9505
      @faith9505 Рік тому

      A Happy Way to Live
      The servants who are ready and waiting for his return will be rewarded.
      -Luke 12:37
      All around us we can see fulfilled Bible prophecies, signs indicating that the return of Jesus Christ is drawing near.
      As followers of Christ, we should be watching for Him. We need to be ready to go.
      Jesus, speaking about His return, said, “Be dressed for service and keep your lamps burning, as though you were waiting for your master to return from the wedding feast. . . . The servants who are ready and waiting for his return will be rewarded”
      (Luke 12:35-37)
      Are you ready for His return? To be ready means to be engaged in activities that you wouldn’t be ashamed to be doing if Jesus were to return. It’s a good idea to periodically ask ourselves this question: This place that I am about to go, this thing that I am about to do, would I be embarrassed if I were doing it when Jesus came back?”
      Think about your plans. Is there anything you will be doing today, tonight, or tomorrow that you would be ashamed to do if Christ were to return? If so, then change your plans. You want to be ready for His return.
      Not only should we be ready, but we should anxiously await the return of Christ.
      We used to have a German Shepherd who slept outside the bedroom, leaning against our door. We didn’t let him sleep in our room because he often had nightmares and would wake us up. Every morning when we opened the door, he rolled into the room. Then he’d jump up and start running in circles. He was genuinely happy to see us.
      That is how we should be waiting for Christ’s return. And anything that might prevent us from saying “Come quickly, Lord Jesus” is out of place in our lives.
      In addition to waiting, we should be working. Every now and then, someone predicts that Jesus will return on a specific date. People believe these predictions and start quitting their jobs or divorcing their spouses.
      But that is not what we should be doing as we wait for the return of Christ. Instead, we should be working for Him.
      The Bible says, “Just as the body is dead without breath, so also faith is dead without good works”
      (James 2:26)
      If watching is the evidence of faith, then working is the evidence of faith in action. Watching for the Lord’s return will help us prepare our own lives. But working will ensure that we bring others with us to Heaven.
      The great British preacher C. H. Spurgeon said, “It is a very blessed thing to be on the watch for Christ. . . . You can be poor without murmuring; you can be rich without worldliness; you can be sick without sorrowing; you can be healthy without presumption. If you are always waiting for Christ’s Coming, untold blessings are wrapped up in that glorious hope”
      When you live in the anticipation of Christ’s return, it’s a happy way to live.

  • @gigabytemon
    @gigabytemon 6 місяців тому +183

    Peter: *starts to train an AI to play Pokemon*
    Magikarp Seller: "It's time to become a multi-millionaire."

    • @TZDUHH
      @TZDUHH 2 місяці тому +3

      😂

    • @ThePlumGeneral44
      @ThePlumGeneral44 Місяць тому +1

      He literally did earn 5 million lmao since the guy said that around 10000 of the ais bought the magikarp

  • @steven-mz3jf
    @steven-mz3jf Рік тому +306

    Seeing high effort videos like these from relatively low sub channels always surprises me. Definitely deserves more recognition/subs.

    • @napoleonbonerfarte6739
      @napoleonbonerfarte6739 Рік тому +6

      It's the only video on bro's account lmfao wdym

    • @RandyGBH
      @RandyGBH Рік тому

      @@napoleonbonerfarte6739lol was about to write this too

    • @abhishekkoundal584
      @abhishekkoundal584 Рік тому +2

      Good things take time

    • @absolutelyfookinnobody2843
      @absolutelyfookinnobody2843 Рік тому

      And people who over react to low sub channels being high quality doesn't surprise me. Lots and lots of dumdums out there

  • @turingtestingmypatience
    @turingtestingmypatience Рік тому +247

    watching the little reds go round like an ant colony brings me so much joy and i don't know why. look at them all exploring. learning. discovering the world. lil guys. thank you for spending at least 1000USD and several hours putting this together just for me to uncontrollably laugh at the reds for 20 minutes
    ..with that out of the way, fantastic video. incredibly readable visuals and clear voiceover, awesome topic, understandable for several levels of previous knowledge. can see this hitting the high hundred thousands.

    • @raula6533
      @raula6533 Рік тому +3

      I was looking for this comment because I thought the same!!! It was like watching ants!! Just amazing!! This video exploded my mind... Imagine a Pokemon game were you can compete against a real "rival" (blue) in real time just to see who wins the league first... And every run the rival gets different pokemons with different moves... This guy is just insane, this is like a Pandora box!!!! New sub for sure!!!! And thank you for this video Peter!!!!!

  • @jdllim
    @jdllim Рік тому +643

    It's one thing to set all this up, and it's another to visualize and present it in such a coherent and digestible way. You did both so well! Hope to see more content from you in the future

  • @steak9194
    @steak9194 25 днів тому +8

    16:13 The ai never making it out of mount moon is pretty relatable, to be honest

  • @lateusbetelgeuse
    @lateusbetelgeuse Рік тому +403

    Since I'm all into both Pokémon and coding, UA-cam suggested your video just minutes after you uploaded it. I subscribed after a few minutes watching it, and now I watched it again and noticed you have almost 50k subscribers! With just one video! Please take that as a public, worldwide testament of the effort you have put into this. Thank you so much!

    • @DruggiePlays
      @DruggiePlays 8 місяців тому +1

      Broke yt 😂

    • @t2g648
      @t2g648 8 місяців тому

      If you like Pokemon and AI, you'll love this: ua-cam.com/video/KWwJDyBH8ig/v-deo.html&ab_channel=Spawnvilley

  • @SplishySploshy
    @SplishySploshy Рік тому +275

    As a psych prof I'm always trying to think of different ways to explain certain concepts and give relatable examples, and this one is perfect!

    • @MasteringSilence
      @MasteringSilence Рік тому

      They tell me I’m crazy here 🤪

    • @norabarlow17
      @norabarlow17 Рік тому +5

      ​@@MasteringSilenceCrazy? I was crazy once

    • @MasteringSilence
      @MasteringSilence Рік тому

      @@norabarlow17 you only lose your mind once… They put me in a rubber room with rubber rats…

    • @knockout8157
      @knockout8157 Рік тому +5

      @@norabarlow17they locked me in a room. A rubber room with rats.

    • @charpool169
      @charpool169 Рік тому +2

      As a psych professor can you explain the appeal to these people repeating the copy paste comments?
      Also just to be clear I'm also asking out of genuine curiosity if there may be psychological reasons past the basic wanting to be a part of something, and not just trying to hate on them or anything ✌

  • @e4e5e2e7
    @e4e5e2e7 9 місяців тому +103

    Extremely impressive visualization of the simultaneous iterations. It can be hard to grasp that machine learning is happening in batches of mass parallel attempts, not each progressive scenario after another one by one. Excellent video!

  • @MousechrisTFM
    @MousechrisTFM 5 місяців тому +11

    It stopped to look at the scenery, exactly like humans do
    It was petty and refused to press A for its defeat message simply just to not be told it lost
    It rage quitted avoiding brock because it lost too many times
    Your AI is just a literal human todler
    This AI is genuinely adorable

  • @hornoxthekingslayer8100
    @hornoxthekingslayer8100 Рік тому +547

    If you ever do have the AI finsih the game, I think it would be really cool if you let the same AI try Pokemon Gold. I think seeing if an AI trained on Gen 1 could play Gen 2 that would be an interesting experiment

    • @zeebo30
      @zeebo30 Рік тому +31

      Obviously it'd have to relearn how to navigate the map, but it'd probably do well in battles since it already knows how

    • @johnhamilton5431
      @johnhamilton5431 Рік тому +16

      It wouldn't be able to catch the farfetchd or use cut
      This game would fail too with the hm's

    • @geekygecko1849
      @geekygecko1849 Рік тому +10

      I'm going to do this as a project for my machine learning class, and I am planning on trying the same algo on Gen 2.

    • @lpsfoxstar8454
      @lpsfoxstar8454 11 місяців тому

      do make a video@@geekygecko1849

    • @BatistaInvests
      @BatistaInvests 11 місяців тому

      ​@@geekygecko1849how can I follow along?

  • @eddie7252
    @eddie7252 Рік тому +243

    I honestly expected this video to be from a youtuber with thousands of subscribers, to see that you only have 60 baffles me, this is an incredibly well-made and well-put together video.

    • @viperific3410
      @viperific3410 Рік тому +4

      yeah i thought the same, its gone up to 400 now but still nuts

    • @androsp9105
      @androsp9105 Рік тому +6

      tbf, it's his first video.

    • @viperific3410
      @viperific3410 Рік тому +5

      @@androsp9105 yeah I only realised that after I left this comment, even more nuts lmao

    • @Station9.75
      @Station9.75 Рік тому +1

      He’s gained nearly 5,000 in a few days. Very good going.

    • @AwesomeHairo
      @AwesomeHairo Рік тому

      Misuse of commas.

  • @BlackScytheLP
    @BlackScytheLP Рік тому +1148

    Haven't even finished the video yet, but I want this to pop off in the Algorythm, this video had tons of efforts put into it, and deserves to get out there.

    • @Neo_Data
      @Neo_Data Рік тому +33

      I've got some good news for you, that's how I found this video

    • @esotericraime1441
      @esotericraime1441 Рік тому +16

      The algorithm brought me here

    • @auraonline9073
      @auraonline9073 Рік тому +5

      Guess I'll throw on a comment too then. This is great!

    • @toyushi
      @toyushi Рік тому +3

      yesss this was so cool

    • @aaronhpa
      @aaronhpa Рік тому +1

      Thanks then

  • @willianrocha5475
    @willianrocha5475 8 місяців тому +134

    As a Pokemon enthusiast with 4 Pokemon tattoos and a data analyst aspiring to become a data scientist, this project was one of the coolest to watch! I was so fascinated that I decided to replicate the project myself. I encountered some difficulties along the way, but the Discord community was incredibly helpful. Congratulations on the project! 🙌

    • @JuliusCaesar888
      @JuliusCaesar888 28 днів тому +2

      Thanks for telling us all about your 4 Pokémon tattoos, that's just the proof we needed that you really like the games. All of us had proof standards met, you're definitely a fan. Congratulations bro.

    • @PhycoSerpentStudios
      @PhycoSerpentStudios 10 днів тому

      How easy is it to replicate and can you have it play other games such as gold? Or even newer gens like fire red. Itd be cool to get it to beat red. And then see how long it takes to get through other generations

  • @trbremm
    @trbremm Рік тому +305

    I really like how grounded and transparent your breakdown of the AI capabilities and limitations is, it shows it as a tool and not as a magical solve-all-problems strategy. Also, what a masterful storyteller and explainer you are. This video is very well paced and laid out, congrats!

    • @SSGoatanks
      @SSGoatanks Рік тому +2

      Yes it's limited but imagine what it could become in a few more years 🤖

  • @jondebeer6863
    @jondebeer6863 Рік тому +292

    As a physicist i appreciate those visualizations. This is truly remarkable content.

    • @aurelia8028
      @aurelia8028 Рік тому

      wtf does you being a physicist have to do with anything? guess you just wanted attention.

  • @joshuasims5421
    @joshuasims5421 Рік тому +312

    That was incredible! I’ve always wondered if this was possible, I’m blown away by what the AI was able to learn! The visualizations and presentation were excellent, I hope this video reaches a wide audience!

  • @Solsumi
    @Solsumi Рік тому +118

    Dropping a comment to help the algorithm. This video honestly deserves millions of views. I love the part where the AI learned to RNG manip to catch a Rattata. It's one of those moments that's unexpected at first but when you go back and look at it it's like, "oh, of course it would react like that!" Moments like those are why I love AI learning videos like this.

  • @chrispyvolterra
    @chrispyvolterra Рік тому +88

    This is their first UA-cam Upload, it’s crazy to me how much work, effort and money went into its production without having built an audience on an already successful channel before. Mad props to you Peter.

    • @chrispyvolterra
      @chrispyvolterra Рік тому +5

      I am looking forward to see what else you will create.

    • @notavailable947
      @notavailable947 Рік тому

      He is an employee of Amazon Headquarters in Seattle 👏🏽👌🏽 He is smart af

  • @YMilkshake
    @YMilkshake Рік тому +329

    The visualizations of the AI exploring is actually insane! Seeing the entire map and all iterations moving looks so dope, especially with the arrows indicating their average movement. Sick video!

    • @bentpen2805
      @bentpen2805 Рік тому +1

      It was like watching what PokeMMO would’ve been in the early 2000s

    • @faith9505
      @faith9505 Рік тому

      A Happy Way to Live
      The servants who are ready and waiting for his return will be rewarded.
      -Luke 12:37
      All around us we can see fulfilled Bible prophecies, signs indicating that the return of Jesus Christ is drawing near.
      As followers of Christ, we should be watching for Him. We need to be ready to go.
      Jesus, speaking about His return, said, “Be dressed for service and keep your lamps burning, as though you were waiting for your master to return from the wedding feast. . . . The servants who are ready and waiting for his return will be rewarded”
      (Luke 12:35-37)
      Are you ready for His return? To be ready means to be engaged in activities that you wouldn’t be ashamed to be doing if Jesus were to return. It’s a good idea to periodically ask ourselves this question: This place that I am about to go, this thing that I am about to do, would I be embarrassed if I were doing it when Jesus came back?”
      Think about your plans. Is there anything you will be doing today, tonight, or tomorrow that you would be ashamed to do if Christ were to return? If so, then change your plans. You want to be ready for His return.
      Not only should we be ready, but we should anxiously await the return of Christ.
      We used to have a German Shepherd who slept outside the bedroom, leaning against our door. We didn’t let him sleep in our room because he often had nightmares and would wake us up. Every morning when we opened the door, he rolled into the room. Then he’d jump up and start running in circles. He was genuinely happy to see us.
      That is how we should be waiting for Christ’s return. And anything that might prevent us from saying “Come quickly, Lord Jesus” is out of place in our lives.
      In addition to waiting, we should be working. Every now and then, someone predicts that Jesus will return on a specific date. People believe these predictions and start quitting their jobs or divorcing their spouses.
      But that is not what we should be doing as we wait for the return of Christ. Instead, we should be working for Him.
      The Bible says, “Just as the body is dead without breath, so also faith is dead without good works”
      (James 2:26)
      If watching is the evidence of faith, then working is the evidence of faith in action. Watching for the Lord’s return will help us prepare our own lives. But working will ensure that we bring others with us to Heaven.
      The great British preacher C. H. Spurgeon said, “It is a very blessed thing to be on the watch for Christ. . . . You can be poor without murmuring; you can be rich without worldliness; you can be sick without sorrowing; you can be healthy without presumption. If you are always waiting for Christ’s Coming, untold blessings are wrapped up in that glorious hope”
      When you live in the anticipation of Christ’s return, it’s a happy way to live.

  • @jaredezz
    @jaredezz 8 місяців тому +3

    The technical expertise that went into this is astounding. As a lifelong pokénerd and career software engineer, I applaud you for capturing my attention with such a captivating topic and experiment. But as just a person, I thank you for relating it back to the human condition.
    Realizing that we get distracted by false or incorrectly calibrated reward systems gives us awareness, the first step in the right direction toward pursuing real, meaningful value out of life. I would love to hear more of this from your obviously talented and insightful, inspirational mind.

  • @henriquemagalhaessoares8739
    @henriquemagalhaessoares8739 Рік тому +257

    This was an amazing project and explanation. You should submit this to The Journal of Geek Studies if you don't have a publication lined up already.

    • @seveneyes77
      @seveneyes77 Рік тому +1

      Wah is that a thing?

    • @henriquemagalhaessoares8739
      @henriquemagalhaessoares8739 Рік тому

      @@seveneyes77 Yep! They are an online publication that uses geek culture as a way to popularize science. They had a bunch of articles from the biology if final fantasy monsters to the effectiveness of super man disguise.

  • @headyshotta5777
    @headyshotta5777 Рік тому +95

    this video is mindblowing. I have absolutely no clue how you collected and translated all this data into such cool visualizations, but i am in awe. this is so cool. thank you so much for making it!

  • @LPcrazy_88
    @LPcrazy_88 Рік тому +376

    Holy crap this is your very first YT video? I can't wait to see what you cook up if you continue to create! Outstanding work!

    • @clickpwn
      @clickpwn Рік тому +35

      Tbh I didn’t know youtube algorithm allowed channel with 1 video to pop off like this. Over 1 million views in 7 days?? If this video was posted in a sizable channel, it might have been even 10 times more.

    • @bilibangbang
      @bilibangbang Рік тому +2

      he paid for the view XD@@clickpwn

    • @sarkhaaan
      @sarkhaaan Рік тому

      @@bilibangbanghow you know that?

    • @StonyBaboon
      @StonyBaboon Рік тому

      It gets better when u go into the git-hub project and find out that he has been working on this for the last 2 years...

    • @blake..-
      @blake..- Рік тому

      @@bilibangbangmald

  • @RageAgainstTheTards
    @RageAgainstTheTards Рік тому +96

    This was awesome, I'd love to see a full series of the AI completing the game.

    • @ΧάρηςΚυπαρίσσης
      @ΧάρηςΚυπαρίσσης Рік тому +3

      Yes!!

    • @tsunalein
      @tsunalein Рік тому

      downloaded it and train the ai more

    • @cassidy8307
      @cassidy8307 Рік тому

      And then i'd like to see it completing the game as fast as possible. An AI speedrun competition: winner gets 100,000 arbitrary points

  • @benjones8779
    @benjones8779 Рік тому +671

    Not sure if its been said already, but, I would love to see them beat the game. Then we can see what levels they got to and what they thought was the best pokemon to have for the elite 4. Would be interesting.

    • @Asidders
      @Asidders Рік тому +25

      Charizard with Slash, easy

    • @teracraged320
      @teracraged320 Рік тому +33

      This will took a looooott of time and video preparation edit etc. But I agree would be awesome

    • @Mcobange
      @Mcobange Рік тому +30

      i really doubt if the AI can solve the Stone Moving "Puzzles" inside the IceCave and VictoryRoad thou.
      Can it even be teached to learn and use the VMs?
      but id love to see it :D

    • @davidfl4
      @davidfl4 Рік тому +21

      I think it would be hard to program the rewards to get them through the specific obstacles tho like using cut in certain places etc

    • @stephenh9483
      @stephenh9483 Рік тому +3

      Yeah they would shatter Wersters Speedrun World Record!

  • @animeballsdeep
    @animeballsdeep Рік тому +500

    This video was amazing 💯

  • @lukasruger6048
    @lukasruger6048 5 місяців тому +8

    This might be the most interesting, fascinating and satisfying video I've watched on UA-cam so far. Hats off, I'm looking forward to future videos!

  • @mischavandenburg
    @mischavandenburg Рік тому +132

    “Just hanging out and admiring the scenery is more rewarding than exploring the world”
    Amazing work Peter! I look forward to see how this will progress

  • @BryceHuston
    @BryceHuston Рік тому +521

    They told me my Pokémon phase would pass. Little did they know, it was just evolving into an AI obsession!

    • @sanjaywilson8232
      @sanjaywilson8232 Рік тому +21

      Pokémaniac Bryce Huston wants to battle!

    • @ashashii911
      @ashashii911 Рік тому +6

      ​@@sanjaywilson8232LMAO!

    • @30303Steve
      @30303Steve 10 місяців тому +3

      *Pokemon Trainer Battle Theme starts playing*

    • @aplesos
      @aplesos 10 місяців тому

      Edit : Go Lucario !
      Fight Pokemon
      Bag Run away

  • @aBlackMage
    @aBlackMage Рік тому +145

    This might be the coolest video of AI playing a video game I've ever seen. I love all the fascinating emergent behaviours (especially the RNG manipulation), as well as the analogies you draw to humans. I also love that you presented the technical explanations in a way that allowed me understand almost everything without any programming knowledge, just a decent understanding of AI. Genuinely amazing job, I hope to see more like this in the future! :)

  • @artisticcrossbreed
    @artisticcrossbreed 5 місяців тому +14

    I'm absolutely dying for an update, I keep checking this channel every few months to see if there is another video

    • @kuromyou7969
      @kuromyou7969 Місяць тому

      I'm only 12 min in and looked to see if there were more videos! But alas...

  • @JoaoMorais-ee1oq
    @JoaoMorais-ee1oq Рік тому +232

    Everything about this was amazing, the computational approach, the video edit, the tone, the explanations and the real life parallels. Beautiful work!

  • @SpaghettiRoad
    @SpaghettiRoad Рік тому +108

    This is the coolest video I have ever seen! You did beautiful job visualising all the games being played simultaneously.

  • @TailsMiles249
    @TailsMiles249 Рік тому +184

    The amount of work you've put into this is so incredible. All of the self recording of _all_ of the AI iterations meant time spent (never wasted) for the sake of a single video. From the editing you've shown down to the research of how the human psyche works, this is beyond something I would even think to produce. You will go far in your endeavors.

    • @MageMinionsOP
      @MageMinionsOP Рік тому +4

      This guy's first video and it's about using ai, so UA-cam AI said "I gochu"

  • @Distractionn-CG_5945
    @Distractionn-CG_5945 7 місяців тому +6

    This was absolutely amazing, my friend! Please do more of these! I must admit I was disappointed that you didn't do the whole game 😂

  • @cashmoneybanks8442
    @cashmoneybanks8442 Рік тому +353

    Did you edit this yourself? Not only is the content amazing, but I'm blown away by how well this was all put together and demonstrated. If this is really your first video that's seriously impressive

    • @caderlocke8869
      @caderlocke8869 Рік тому +22

      My first thought when it panned out. Like who tf is this guy lol

    • @MrGoodeats
      @MrGoodeats Рік тому

      He used JRGMediaYT for the edits

    • @Eltotoww
      @Eltotoww Рік тому +9

      He probably asked an AI to edit it 😅

  • @Hateburn
    @Hateburn Рік тому +98

    I remember back when there were 1 or 2 reinforcement learning videos on YT.
    Now we get all sorts.
    But this one...this one is special. The production value here is excellent.
    Thanks for all of your hard work.

  • @flicmylich
    @flicmylich Рік тому +417

    Bro honestly this is UA-cam video of the year. How spectacularly you presented this information in such a clear and entertaining way that is honestly on the level of professional science productions like Cosmos. Absolutely colossal performance man. I wouldn’t be surprised if you had an entire production team.

    • @peterwhidden
      @peterwhidden  Рік тому +45

      thank you for the kind words :)
      no production team, but my friend @torinblankensmith made the thumbnail

    • @lovol2
      @lovol2 Рік тому +2

      I second this. I'm super interested in the content, but at the same time I'm like.... However did he make this look so good.

    • @glupshitto1977
      @glupshitto1977 Рік тому +4

      It’s not that deep dude holy shit

    • @Tom-yg7mi
      @Tom-yg7mi Рік тому +18

      @@glupshitto1977 its deep.. learning.

    • @Fissan_Poulsen
      @Fissan_Poulsen Рік тому

      @@Tom-yg7mi get out

  • @MichaelCrecker
    @MichaelCrecker Рік тому +377

    The AI naming Squirtle “AAAAAAAAAA” killed me! 😂Thanks, amazing content.

    • @RevanBC
      @RevanBC Рік тому +18

      AI picked the Squirtle in Pokemon Red lol what a contrarian

    • @Tropictopic69
      @Tropictopic69 Рік тому +3

      i was hoping someone else had mentioned this

    • @Tyler-qh7bf
      @Tyler-qh7bf Рік тому +3

      @@RevanBC that was its only option...

    • @RevanBC
      @RevanBC Рік тому

      @@Tyler-qh7bf
      No you can pick 2 other pokemon! idiot.

    • @sergeantjoe6802
      @sergeantjoe6802 Рік тому +5

      Pigeoto was ‐-----------

  • @3ountyhunter
    @3ountyhunter Рік тому +40

    Is this really your first video?! This is incredibly well done. So glad YT has recognized that your content is deserving of being pushed algorithmically.

  • @EpicLPer
    @EpicLPer Рік тому +50

    Dayum, this video is so immensely well made and laid out! I thought you'd be a 6 digit subscriber channel by the sheer quality here, respect :)
    Not only did you visualize all the data in an amazing way, you even explained how this all went together and what kind of effort went into it to create it all. I was quite interested how you gathered all the data and then put it together on a map, and even that was shown. More than blown away by all this!

  • @wb7779
    @wb7779 6 місяців тому +5

    I got a lot of insights from watching the video. The visuals were the best.

  • @ObviouslyASMR
    @ObviouslyASMR Рік тому +42

    Really cool video! I don't see most AI channels talking about comparisons between people and the AI and it really added a lot imo
    Also really love that you included how you made the visualization of the lil guys running around, and good practical tips for training RL

  • @rainwatervideography4546
    @rainwatervideography4546 Рік тому +119

    This video was done incredibly! A perfect demo of and comparison to deep learning. A well earned follow. The dedication, creativity, and in depth descriptions are beyond impressive for this being the first video on this channel. Keep at it! I'll be looking forward to what ever you produce next!

  • @htspencer9084
    @htspencer9084 Рік тому +6

    Anyone newer to Machine Learning: this video is such a great introduction to concepts such as:
    * Reward Functions
    * Misalignment
    * Emergent Behaviour
    And more!

  • @JuliusCaesar888
    @JuliusCaesar888 28 днів тому +1

    LMFAAOOOOOO the AI being PTSDd by interacting with the PC is absolute gold. This is the kind of satire that is brilliant by nature and just forces a person to stop and laugh about it for a few minutes.

  • @phancanedoo013
    @phancanedoo013 Рік тому +286

    Just 10 minutes in, and it has already gotten so damn interesting! The behaviors, the systems, the events, the unexpected but explainable scenarios, the AI literally experiencing something comparable to trauma? I want to see more!

    • @kaelthunderhoof5619
      @kaelthunderhoof5619 Рік тому +3

      The Red swarm wasn't enough?

    • @kaio0777
      @kaio0777 Рік тому

      me too sad when he stop at moon mt.

    • @Elintasokas
      @Elintasokas Рік тому

      The AI doesn't experience anything because it's not a conscious entity. It experiences as much as Microsoft Word when you open it.

    • @alexb8926
      @alexb8926 Рік тому

      @@Elintasokas😅😂😂

    • @JamanWerSonst
      @JamanWerSonst Рік тому

      @@Elintasokas Based on my PCs heavy breathing when I open Word I assume its orgasming.

  • @brandonvolesky9867
    @brandonvolesky9867 10 місяців тому +255

    Your findings, implementation, logic, and ANIMATION is incredible. 👏👏

    • @Asidders
      @Asidders 5 місяців тому

      Yep. This is easily one of the best videos regarding Pokémon on UA-cam.

  • @MarcusTheDorkus
    @MarcusTheDorkus Рік тому +85

    Right off the bat I like this video because it actually goes into detail on how success is defined. Way too often this is skipped over and it absolutely breaks my brain because the implication of not covering this is that the AI somehow figured things out without any sort of goals defined.

    • @Gambleraddict79
      @Gambleraddict79 Рік тому +1

      adding ai to Pokémon added absuloutely nothing to the game. same idea as staring out a window and twiddling your thumbs worthless NPC behavhiour

  • @bronzebond4869
    @bronzebond4869 7 місяців тому +2

    I’ve got no idea who you are but i can say how proud i am that someone tried this and had the patience to gather such interesting, noteworthy and valuable insights. Great work fam. Awesome explanations as well

  • @theopiumden1551
    @theopiumden1551 Рік тому +48

    This is one of the most fascinating things I’ve ever seen. You deserve (1) reinforcement point in the form of an award. 🤙

  • @AMNEZ1A
    @AMNEZ1A Рік тому +101

    This video reminds me of when I got Pokemon Yellow as a kid, I didn't read/speak english so I just had to try things to learn what everything did and was. It's weird how similar the AI playing feels to my experiences as a kid.
    The Pokemon games (among TV and other games) actually helped me learn english at the age of 9 far before my classmates could and as a little extra ROM hacking got me into graphic design and coding/web development somehow. Pokemon in general is the base of my origin story.

    • @kaio0777
      @kaio0777 Рік тому +1

      damn bro that is deep.

    • @Edoss98
      @Edoss98 Рік тому +1

      Me with Spanish at 3 years old and English at 2 ahah Pokemon Azul and Pokemon Red 😅

    • @joaofernandes6349
      @joaofernandes6349 Рік тому

      When I first played Pokemon, just like yourself I was still a kid didn't know any English so I couldn't even save. The first few months was just like the AI, start from that little room and trial and error.

    • @2006HondaCivicD
      @2006HondaCivicD Рік тому

      Hello fellow ESL player, i was like 5 when I got my first hand on pokemon. I was EXTREMELY upset when I accidentally start over the game (the copy was second hand and the saved file is from my older brother who already completed the game.) that I cried. I lost my brother's charizard, even the moltres he caught with an ultra ball because i couldnt understand a lick of English back then - overwriting his save accidentally, and I just love exploring the pokemon world more than battling them.
      Only then 3 whole years later when I did restart and beat pokemon on my own, around 12 I became competently aiming to "gotta catch em all".

    • @lexusenthusiast6414
      @lexusenthusiast6414 5 місяців тому

      This is how I taught myself English at 6 years old, pokemon yellow and a dictionary provided by my parents. Wild

  • @naveking1
    @naveking1 Рік тому +40

    This is great- I have no background with anything programmingwise but you made this into such an entertaining story. I hope that this blows up enough to get a sequel at some point, I'd watch this for HOURS!

  • @akk1584
    @akk1584 9 місяців тому +2

    If this hasn’t already been suggested, you should make a screensaver video of different cities populated with a ton of Ashes walking around-that shit is mesmerizing!

  • @jay.c2097
    @jay.c2097 Рік тому +122

    Can’t believe this is your first video. This was so entertaining to watch and the editing leaves me wondering how much time it took you. Hope you put out more videos like this and I’d love to see a full AI playthrough at some point!

    • @Deusregere
      @Deusregere Рік тому +6

      I was kinda disappointed that it didn’t conclude with the AI defeating the Elite 4 😢

  • @metleon
    @metleon Рік тому +65

    The counterclockwise motion may just be a result of how certain maps are layed out in the first could areas. You have to go to take the right path on Route 1 to get to Viridian, so following the right wall will get you there.
    Then in Viridian Forest, hugging the right wall is pretty much the fastest way to get through the forest, and I think later generations only deviated slightly to fight trainers for more experience once they realized that Brock was the main roadblock.
    Finally, in Pewter City, you need to take a counterclockwise path to get into the gym. So the AI probably didn't have a preference at first, but going in a counterclockwise direction for it to where it needed to go there fastest.

    • @ForcefulDragon
      @ForcefulDragon Рік тому +6

      That sounds like a pretty good theory to me. Though if areas later in the game required a different pathing techniques... Would it be sophisticated enough to only use new pathfinding techniques when required and still use optimal pathfinding for the parts it already 'solved'? Or would it just have one skill set for it's pathfinding that will start to skew towards being mediocre at both sections but amazing at neither?

    • @xxzombiekillerxx9549
      @xxzombiekillerxx9549 Рік тому +2

      @@ForcefulDragon i feel as though that would require the ai to access long term memory instead of short term which was described in the video.

    • @ForcefulDragon
      @ForcefulDragon Рік тому +1

      @@xxzombiekillerxx9549 not necessarily. If the first generations were evenly split between left and right then at the end of the gen it would have seen that right-preference exploration was yielding higher point totals. So a right turn preference would be developed simply from its higher score based results - especially along the first few routes in the game. It wouldn't require memory at all, just RL

  • @thermonuclearwarhead
    @thermonuclearwarhead Рік тому +279

    The accidental traumatic depositing of Pokémon in the center is rather hilarious, and the Magikarp/fast food analogy is beautiful. Picking left is an ancient gaming trick, not surprised AI picked it up/that we make games that reward it. And lastly the short-term memory bit seems to me a great idea to solve this (and also, accidentally, rather human :P).

    • @counterleo
      @counterleo Рік тому +8

      I was feeling sad for the AI who must have thought it accidentally killed its Pokémon 🥲😂

    • @lesbo37
      @lesbo37 Рік тому +4

      The only flaw in the fast food analogy is we'd need to learn that in the future eating fast food will make you live longer (or something else awesome) given what Magikarp evolves into!

    • @teenslayer
      @teenslayer Рік тому +1

      i thought the traumatic experience was super interesting too and funny lol

  • @IschmarVI
    @IschmarVI 8 місяців тому +2

    UA-cam really needs a "goated" option in addition to "like" and "dislike". Because in all honesty, a simply "like" doesn't give enough of a reward trigger to even begin describe how awesome this entire project is.

  • @leeslater8962
    @leeslater8962 Рік тому +47

    This video is outstanding and surely one of UA-cam's all time best. Can't imagine how much work you've condensed into half an hour, and managed to make what is quite technical/dense material into something really engaging for people on different levels of prior/knowledge.

  • @matteoemanuele-gi4jk
    @matteoemanuele-gi4jk Рік тому +906

    Fellas, I'm an AI engineer, with a short background in Reinforcement Learning for a period I interacted with Sony for a job.
    I need you to understand the MAGNITUDE of these results. It's an insane work, and I'm sad that probably only a few might understand the sheer amount of skill require to do this.
    Insane job man, you are a goat

    • @dkm9090
      @dkm9090 Рік тому +32

      This is no understatement . This takes a level of focus and problem solving that is just not normal. Savage!

    • @bricegardner7815
      @bricegardner7815 Рік тому +31

      I’m not even an engineer, and my jaw is on the ground.
      I genuinely would love to learn how to become a part of this world. I wish there were more people in my circle with hobbies and fascinations like this.
      I used to help write xml codes for world of Warcraft bots when I was a kid. Now laying in bed with an alarm set for five hours from now. I’ve got a sales job… is 33 years old too old to learn how to work in this scene?
      This video drips with knowledge, and a wisdom and understanding of something that I have no idea how to even begin to approach.
      Kudos!!

    • @alr9447
      @alr9447 Рік тому +11

      I wouldnt say those results are impressive theory wise ? The impressiveness of the work comes from a technical point of view, how great he managed to link the RL model with the game and the fine-tuning he put in it. By the way, AI engineer doesnt really mean anything, what is your job title ? Out of curiosity

    • @harshrajjadhav940
      @harshrajjadhav940 Рік тому +8

      ​@bricegardner7815 no age is too high. With enough determination and curiosity you can definitely pivot. Look into videos explaining the skills required to get a job in game development/ AI.

    • @matteoemanuele-gi4jk
      @matteoemanuele-gi4jk Рік тому +17

      @@alr9447 I am officially a data scientist, but within the team I'm the guy responsible of the training of the ML models, therefore I make this distinction because nowadays "data scientist" is too broad. In most big tech companies, AI engineer is a common notation to distinguish between the data science folks

  • @dylancope
    @dylancope Рік тому +49

    This was a really excellent video! I'm super impressed that you managed to get this working - as a PhD student working with RL I understand that it can be an nightmare to debug! And I appreciated the depth of technical details you gave at the end.
    The presentation of the video was really good. I really liked how you eased into the deeper explanations and created lots of cool visualisations. I'm surprised that this is your first video and I hope you make more :)

  • @SpeedyGaming
    @SpeedyGaming 2 місяці тому +2

    This video should honestly go into the library of congress because of how historical it displays AI agent behavior. Super fascinating to see how far we have come in the span of years. We are close to AI actually playing their own video games and actually being better at it then us as well.

  • @longbottomleaf6918
    @longbottomleaf6918 Рік тому +41

    This brings back so many fond memories of playing Blue version on my pokemon edition GBC, learning how to evolve pokemon for the first time and finally getting through the forest. I've played the game so much, 25 years later I can STILL visualize the entire route of Rock Tunnel.

  • @trevorschauwecker
    @trevorschauwecker Рік тому +342

    I noticed at 17:20 you mentioned you were unsure of why it chose to move in a single direction with limited memory. When I was a firefighter, we used a method of keeping our right or left hand on a wall while searching smoke-filled buildings. The method that AI used is more or less the same method and my hypothesis is that it learned it could discover new areas more easily by utilizing this technique which triggered more reward points at a faster rate.

    • @faizanulhaq8349
      @faizanulhaq8349 Рік тому +11

      what if the wall is on fire

    • @trevorschauwecker
      @trevorschauwecker Рік тому

      @@faizanulhaq8349 probably going to be pretty hot…

    • @maxng7211
      @maxng7211 Рік тому +2

      I also noticed that the first few towns have right turn bias. That being if you follow the wall on the right you're more likely to get to a new area faster than the wall to the left

    • @elsephiroth666
      @elsephiroth666 Рік тому +5

      @@maxng7211 Probably because the game is circling right (start on the left of the whole map, go up then right then down then left).

    • @bideo_games
      @bideo_games Рік тому +9

      This is correct.
      If you wanted to escape a maze the slow but sure way, you would hug the wall until you reach the endpoint.
      So if you only made right turns the entire way, it may take longer but you would have a deterministic method of completing the maze.
      Using this method you could clear caves without needing Flash.

  • @mrdbourke
    @mrdbourke Рік тому +21

    What a truly inspiring video, nostalgia, education, entertainment, curiosity all in one. Thank you for the incredible work Peter! You’ve got me wanting to play Pokemon again!

  • @christiannersinger7529
    @christiannersinger7529 7 місяців тому +3

    Making it to viridian forest is already insane, it's got 3 separate if/thens to complete that don't have rewards aside from gameplay expansion, this is actually cool af

  • @BernardoMachado
    @BernardoMachado Рік тому +272

    This is one of the best implementation and visualization videos on the subject I've ever seen. Amazing work!

  • @plasmakitten4261
    @plasmakitten4261 Рік тому +197

    This is like such a classic example of how AI thinks differently from humans. It can't figure out how to get past a ledge but its pattern recognition is so strong that it figured out friggin RnG manipulation by itself.

    • @NikhilAutar
      @NikhilAutar Рік тому +5

      We humans also have reward systems. Everything "living" does. It's different to an AI model. But who's to say that we're not just an AI model with different base rewards?

    • @plasmakitten4261
      @plasmakitten4261 Рік тому +2

      @@NikhilAutar The term "artificial" is meaningless unless it's being used to mean "made by humans". Since we didn't design ourselves, we aren't AI by any useful meaning of the term. But at the core, this way of designing AI is designed to mimic how humans learn, so you're not far off.

    • @ryanwirawan5012
      @ryanwirawan5012 Рік тому +2

      Not only the pokemon gains EXP points, the AI gains EXP too

    • @NikhilAutar
      @NikhilAutar Рік тому

      @@plasmakitten4261 We'd be artificial to whoever designed us/this haha

    • @cs16Tactics
      @cs16Tactics Рік тому +1

      I think completely opposite :D This (video) was prime example of how phenomenons that happens with humans can be put into numbers used by AI learning. Our learning = pattern recognitions based on the rewards we've gotten. They aren't as vivid with "Getting 3 points on catching pokemon", but rather intuitive that happens automatically.

  • @SevereMalfunction7
    @SevereMalfunction7 Рік тому +45

    this is honestly worthy of an entire course's final project at the graduate level. Thank you for making this freely available!

    • @warmcat
      @warmcat Рік тому +2

      Isn’t it just! I’m currently half way through my final project for my MSc, with a relatively shit regression model predicting energy usage. 😂

  • @anguskeenan4932
    @anguskeenan4932 9 місяців тому +2

    My favourite bit was when it named the Squirtle ‘AAAAAAAAA’ so relatable

  • @Nilumbra
    @Nilumbra Рік тому +125

    Dude, you are a genius! I am taken aback that this is your first video. Your skill, knowledge, production value and way of balancing what can be a dry subject with interesting information and funny tidbits is absolutely amazing!
    I am seriously jealous, with your skills you are gonna go far!
    I am subscribed! Would love to see more Pokemon AI stuff, but understand if you wanna go a different direction as well.

    • @13hydRa37
      @13hydRa37 Рік тому +5

      It look like, he run this program for himself too, to get the best possible reaction to his first video. And we all part of a simulation :O IMAGINE

    • @Johnrick90
      @Johnrick90 Рік тому +1

      Amen to this!
      I see great science potential here in multiple purposes/ subjects!

  • @abaddonarts1129
    @abaddonarts1129 Рік тому +52

    I can't believe this is your first UA-cam video, that's insanely impressive. I'd love to see how this works in other generations of Pokemon games, at least into gen 5. (The games past that get into 3D/not a grid so I figure it'd be harder to train?). The fact this is already put together so well might mean it's easier to make ones for other Pokemon games!!
    Also I love the thousands of little guys wandering the map!

  • @tvstealer
    @tvstealer 9 місяців тому +4

    "AI will revolutionize the world"
    AI: _Can't even find its way out of Mt. Moon_

  • @gamingwithgeko7377
    @gamingwithgeko7377 Рік тому +7

    4:05 "Curiosity leads us to our most important discoveries, but at the same time it makes us vulnerable to distractions and gets us into trouble".
    What a wonderful and accurate and relatable quote.

  • @JanviChawla
    @JanviChawla Рік тому +85

    This is absolutely insane and so much work went into this! It's so cool to see how the AI learns like humans tend to

  • @McDonaldsCalifornia
    @McDonaldsCalifornia 9 місяців тому +29

    Incredibly well made video! I think your resourcefulness and ability to explain things in non-technical terms shows a deep understanding of the topic.
    Plus the storytelling is top notch

  • @jag1519
    @jag1519 6 місяців тому +2

    Very late on it, but the reason it moves how it does against walls is 'The left wall trick' or 'The maze trick', if you the wall to your left and continue to move along that pattern you'll always be able to eventually find the way out of the maze.

  • @menerdo
    @menerdo 10 місяців тому +85

    5 mil on your first video. Great quality, good research and break down. Congrats, can't wait to see what you bring next!

  • @Distracted_Easily
    @Distracted_Easily Рік тому +29

    It is has been 25 years since I first played Pokemon Red. It is crazy impressive how the AI is able to do what it does. I also never thought how nostalgia I would feel hearing this music again. Well done video and keep up the great work!

  • @lolmanor
    @lolmanor Рік тому +117

    Excellent video! I always love the videos where the AI attempts are overlapped. Makes me feel like I'm staring at a bunch of newborn ants explore the world. Also the Pokemon center "trauma" moment was so cute! Poor AI!!! You didn't do anything wrong!!

  • @CharlieManning-g5h
    @CharlieManning-g5h 8 місяців тому +2

    Bro created a channel, uploaded one banger vid and then dipped. Respect