WEBVTT
Kind: captions
Language: en-PL

00:00:00.149 --> 00:00:05.590
Have you ever wondered how minions reproduce or how a civilization full of them would behave?

00:00:05.590 --> 00:00:09.839
Me too!  So I created AI to mimic their behavior, and now we can answer these questions using science.

00:00:10.839 --> 00:00:14.539
Minions are known for three things: they are evil creatures, they are easily distracted by

00:00:14.539 --> 00:00:17.400
their curiosity, and they love a curved yellow fruit.

00:00:17.400 --> 00:00:20.660
Here Bernie has to eat bananas to get through the day at work.  When they get hungry, they

00:00:20.660 --> 00:00:24.250
will look for fruit nearby to chew.  If they can't find any food sources, their hunger

00:00:24.250 --> 00:00:28.250
will increase and... let's say they'll go to a better place, maybe they're employed

00:00:28.250 --> 00:00:32.009
at some other lab with better health insurance.  When you see a yellow bubble, it means that

00:00:32.009 --> 00:00:35.650
our friend has decided to eat a banana.  The circle is filled with color if they succeed.

00:00:35.650 --> 00:00:39.440
It seems these three are thinking of a different kind of banana…

00:00:39.440 --> 00:00:42.710
Bernie enjoys satisfying their evil needs by being mean to his fellow minions.  When a minion

00:00:42.710 --> 00:00:46.360
makes fun of a friend, its confidence increases.  Unfortunately, this also means

00:00:46.360 --> 00:00:50.180
that the person being bullied will lose their self-esteem.  If a minion is not feeling well in the

00:00:50.180 --> 00:00:51.920
lab, it will also leave for a better place.

00:00:51.920 --> 00:00:55.830
When our simulated creatures engage in this type of behavior, two red bubbles will appear.

00:00:55.830 --> 00:00:59.640
Although apparently sometimes it means they want to dance together or something.

00:00:59.640 --> 00:01:03.420
Finally, I told you that Bernie and crew are easily distracted by shiny things.  The trigger for

00:01:03.420 --> 00:01:07.510
this behavior in the simulation is clearly a radioactive device.  They like to come inside

00:01:07.510 --> 00:01:10.280
.  But they don't know that these tubes are incredibly

00:01:10.280 --> 00:01:14.811
powerful machines, if there is a servant in each of them... new life is born!  The

00:01:14.811 --> 00:01:19.260
clone will inherit the behavior patterns of its ancestors, more on what that means soon

00:01:19.260 --> 00:01:22.620
(and spoiler: it's really cool).  The pink bubble shows when a minion

00:01:22.620 --> 00:01:27.560
scatters and creates a clone by mistake.  Or perhaps a million of them…

00:01:27.560 --> 00:01:31.540
The AI ​​that powers these yellow beans with its eyes constantly checks for behavioral triggers

00:01:31.540 --> 00:01:35.410
within a limited range representing its visual area.  For each goal in the area,

00:01:35.410 --> 00:01:39.390
it calculates the probability of achievement based on several parameters.  If a minion is very

00:01:39.390 --> 00:01:42.960
hungry, he is more likely to approach the banana, and if he has low self-esteem

00:01:42.960 --> 00:01:45.150
, he will likely try to increase it by annoying his friend.

00:01:45.150 --> 00:01:49.430
But I'm only telling you part of the story, behaviors depend on something else too,

00:01:49.430 --> 00:01:52.890
creatures are loaded with genetic information that determines how they behave.  And their genes

00:01:52.890 --> 00:01:57.370
mutate as they reproduce, causing the population to evolve to new levels of intelligence.

00:01:57.370 --> 00:02:00.260
I'll explain this in a moment, but now that we're talking about taking things

00:02:00.260 --> 00:02:06.409
to the next level, have you heard of Core?  Core is a new PC gaming platform where anyone

00:02:06.409 --> 00:02:11.279
can create, share, and play multiplayer games.  You don't believe me?  Even deadmau5

00:02:11.279 --> 00:02:15.889
has created beautiful worlds with Core and I'm sure he's a busy guy!

00:02:15.889 --> 00:02:19.359
No coding is required to program in Core.  But hey, if you're a nerd like me and want to work on

00:02:19.359 --> 00:02:23.150
complex game mechanics, you can also do that by coding your own scripts in Lua.

00:02:23.150 --> 00:02:28.829
There are thousands of free music, sound and art resources available.  Core also has a built-in multiplayer mode,

00:02:28.829 --> 00:02:32.129
so you can instantly publish your games for others to play.

00:02:32.129 --> 00:02:37.580
Look at this.  New project, we put a farm here and… I think it was a chicken costume…

00:02:37.580 --> 00:02:42.790
Hit “publish” and BOOM!  It's there, literally available for anyone to… walk around like a

00:02:42.790 --> 00:02:48.319
human-sized chicken, instantly.  By the way, you can also make money playing

00:02:48.319 --> 00:02:53.120
games on Core!  Some Core Creators have been able to pay their bills, buy their dream cars,

00:02:53.120 --> 00:02:57.959
and quit their day jobs thanks to a bonus program that shares 50% of the revenue

00:02:57.959 --> 00:03:01.280
with the creators!  It's better than any other game development platform.

00:03:01.280 --> 00:03:07.310
I encourage you to use the link in the description to download Core for free and give it a try!

00:03:07.310 --> 00:03:11.419
Back to the lab.  Cloned creatures inherit traits from their creators, such as their

00:03:11.419 --> 00:03:15.209
movement speed or aggressiveness, as well as their likelihood of intimidating other creatures.

00:03:15.209 --> 00:03:19.209
To this end, the simulation takes a very simplified abstraction of how genetic mutation works

00:03:19.209 --> 00:03:23.099
in real life: when a clone is born, the values ​​for each gene – or trait – are randomly

00:03:23.099 --> 00:03:27.230
selected from their parents and then slightly modified, also randomly, but within a limited range.  balk.

00:03:27.230 --> 00:03:29.730
I modeled the following genes: movement speed,

00:03:29.730 --> 00:03:33.700
field of view, aggressiveness, and curiosity.  Creatures that move faster need to eat more often

00:03:33.700 --> 00:03:37.629
to survive, while slower ones don't waste much energy and can go longer without

00:03:37.629 --> 00:03:41.719
eating.  Will evolution make them reach further bananas faster, or slower

00:03:41.719 --> 00:03:45.579
to survive longer?  The viewing area determines, well, how far

00:03:45.579 --> 00:03:49.499
they can see.  For example, a larger area helps them find more bananas.  I would expect this

00:03:49.499 --> 00:03:51.569
value to increase, there is no obvious downside.

00:03:51.569 --> 00:03:56.069
Aggression is part of the equation that determines the likelihood of a minion

00:03:56.069 --> 00:04:01.109
fighting another.  Will they learn courtesy?  And finally, their curiosity determines how likely they are to

00:04:01.109 --> 00:04:04.709
be drawn to playing with the cloning device.  And I did not tell

00:04:04.709 --> 00:04:10.250
you, but I placed a secret reward in them;  when they enter and are cloned, their hunger

00:04:10.250 --> 00:04:13.879
decreases, as if they found a banana in the device.  However, they are not aware of this

00:04:13.879 --> 00:04:17.849
, it is not in their source code.  When they are hungry, they only look for bananas,

00:04:17.849 --> 00:04:21.890
they do not treat these machines as a source of food.  Do you think Bernie and the team will discover

00:04:21.890 --> 00:04:25.520
and use the reward?  This nerd makes the AI

00:04:25.520 --> 00:04:29.310
more intelligent and less artificial, as creatures with certain traits tend to

00:04:29.310 --> 00:04:33.300
survive and reproduce more than others with less successful variants.  So the population is…

00:04:33.300 --> 00:04:34.620
literally… evolving!

00:04:34.620 --> 00:04:36.840
Let's find out what our friends learned then...

00:04:36.840 --> 00:04:41.400
During the first hour of the simulation, the number of creatures remained constant around 13. During this time,

00:04:41.400 --> 00:04:46.139
they created faster and their field of view increased, helping them find more of the sweet long fruits.  They

00:04:46.139 --> 00:04:50.020
also became less aggressive, wow!  They are starting to understand that fighting each other

00:04:50.020 --> 00:04:54.620
is not fun.  And they were absolutely maximizing the value of their curiosity gene!  Does this

00:04:54.620 --> 00:04:58.639
mean they have discovered a hidden reward in the form of a banana and their genes are adapted to use it?

00:04:58.639 --> 00:05:00.949
What happens next?  In the next hour

00:05:00.949 --> 00:05:05.259
the population began to grow as a result of all the good things they had learned.  Unfortunately,

00:05:05.259 --> 00:05:09.539
keeping up with this becomes increasingly difficult as the more minions in the lab, the harder it is to find

00:05:09.539 --> 00:05:13.639
food.  So they came back, started cloning less and fighting more, and even reduced their

00:05:13.639 --> 00:05:18.080
movement speed to become more energy efficient in case they couldn't find any food.

00:05:18.080 --> 00:05:22.669
Surprisingly, evolution began to favor creatures with a smaller field of view.  Perhaps

00:05:22.669 --> 00:05:26.979
the awareness of more stimuli, such as other creatures and cloning devices, distracts them

00:05:26.979 --> 00:05:30.540
from searching for food?  An hour later the population began to look

00:05:30.540 --> 00:05:36.289
stable again.  It's now a laboratory full of old, slow, short-sighted, mean and boring creatures.

00:05:36.289 --> 00:05:40.020
Disappointed by the similarities to reality and tired of listening to creatures screaming

00:05:40.020 --> 00:05:44.430
nonsense, I stopped this simulation here and decided to play around with some of the results.

00:05:44.430 --> 00:05:48.699
I was surprised how at some point the field of view began to shrink.  I expected

00:05:48.699 --> 00:05:52.940
this value to always increase because it has no obvious flaws.  So I'm testing

00:05:52.940 --> 00:05:56.870
the hypothesis that the creatures are distracting themselves with other things, completely excluding

00:05:56.870 --> 00:06:00.810
the behavior that causes them to intimidate each other.  In this case, the population grew much,

00:06:00.810 --> 00:06:06.139
much faster, and these crazy clever ones developed a strategy that relies solely on the

00:06:06.139 --> 00:06:10.340
cloning machines as a food source, wastes as little energy as possible, and takes turns putting

00:06:10.340 --> 00:06:14.930
bananas inside.  machines.  Absolutely fascinating, but they

00:06:14.930 --> 00:06:16.870
don't need a broad vision for that...

00:06:16.870 --> 00:06:21.139
They won this one, so I made it harder, this time I also removed the prize from the

00:06:21.139 --> 00:06:26.009
cloning devices, no extra bananas.  And so!  The field of view expanded to a

00:06:26.009 --> 00:06:29.490
point that essentially encompassed the entire lab and remained fairly stable there.

00:06:29.490 --> 00:06:33.260
However, there is still a slight tendency for this value to decrease over time,

00:06:33.260 --> 00:06:38.229
this may be because once again the creatures have essentially evolved into sloths and being so slow, they

00:06:38.229 --> 00:06:42.590
cannot reach distant targets.  My conclusion: it is very difficult to predict natural selection,

00:06:42.590 --> 00:06:46.370
I expected the field of view to simply increase and it turned out to be much more complex

00:06:46.370 --> 00:06:48.949
.  There is another interesting discovery in this experiment

00:06:48.949 --> 00:06:52.560
, remember that I removed the secret price from the machines?  There is absolutely

00:06:52.560 --> 00:06:57.789
no motivation to enter the device, but their curiosity has shifted in favor of this

00:06:57.789 --> 00:07:02.539
behavior anyway, much slower than before, but still.  This is a natural bias, more curious

00:07:02.539 --> 00:07:06.870
creatures reproduce more, while less curious ones don't do as much, so their genes are less likely

00:07:06.870 --> 00:07:10.720
to survive over time.  Will you see?  Some features may not provide any benefit,

00:07:10.720 --> 00:07:13.450
but evolution may still favor them.

00:07:13.450 --> 00:07:17.229
The last simulation, I wanted to see what would happen if I gave them a lot of food.

00:07:17.229 --> 00:07:21.050
Interestingly, the upper limit for the number of creatures was around 40, which is

00:07:21.050 --> 00:07:24.949
significantly less than with the previous settings.  They don't need a hidden banana, so they

00:07:24.949 --> 00:07:28.940
breed less, it took them a long time to increase their curiosity.  The field of view has

00:07:28.940 --> 00:07:32.020
n't expanded that much either, there's no need for it, bananas are everywhere.  The

00:07:32.020 --> 00:07:36.419
most impressive result is that aggression increased immediately for the first time, apparently

00:07:36.419 --> 00:07:40.139
well-fed minions have extra time to relax and do other things, and they only know how to

00:07:40.139 --> 00:07:43.789
be mischievous.  If a few minions intimidate others, then those with low self-esteem must

00:07:43.789 --> 00:07:48.480
defend themselves to survive, and a cycle of self-interest begins.  I'm impressed by how well

00:07:48.480 --> 00:07:53.659
this represents real life, there was absolutely nothing good about the behavior I implemented in the

00:07:53.659 --> 00:07:56.740
simulation, and in an ideal world with plenty of food, these guys would learn to fight each

00:07:56.740 --> 00:08:00.599
other to survive because they couldn't agree on a strategy that was surely

00:08:00.599 --> 00:08:04.150
best for all of them.  Finally, movement speed has also decreased

00:08:04.150 --> 00:08:07.699
.  I think I'll need to tweak the speed-energy ratio to get more

00:08:07.699 --> 00:08:09.490
interesting results in this area.

00:08:09.490 --> 00:08:12.849
But is this enough for this video, should I make more like this in the future?

00:08:12.849 --> 00:08:16.129
Let me know in the comments and consider subscribing if you enjoyed the content.

00:08:16.129 --> 00:08:19.960
The idea for this project was inspired by this amazing movie, which in turn is inspired by

00:08:19.960 --> 00:08:23.479
a third one that I also recommend... so yes, have fun with them, you'll find them in the

00:08:23.479 --> 00:08:25.740
description.  Be sure to check out Core, the link is also in the

00:08:25.740 --> 00:08:28.590
description.  And what do you think?  Should we make a game

00:08:28.590 --> 00:08:30.009
about breeding minions or - BANANA!

