WEBVTT
Kind: captions
Language: en-IT

00:00:00.160 --> 00:00:04.800
I downloaded a screenshot of every single game on Steam and used a neural network to build

00:00:04.800 --> 00:00:09.760
the Gaming Map, a panorama where similar games cluster together.

00:00:09.760 --> 00:00:13.680
Can we really learn something from the look of the most successful games

00:00:13.680 --> 00:00:20.080
and how they are presented on the platform?  Not to keep you in suspense, it's not entirely clear.

00:00:20.080 --> 00:00:24.320
But I'll show you some interesting patterns, and you can decide for yourself.

00:00:24.320 --> 00:00:29.440
Let's start with the method.  I pulled data for all Steam games directly from the source,

00:00:29.440 --> 00:00:36.560
using their APIs and a bit of web scraping.  These include game tags, prices, reviews, and URLs for

00:00:36.560 --> 00:00:42.160
promotional images used on each store page.  I then wrote a little script to download some of

00:00:42.160 --> 00:00:48.160
these images.  I focused on the first one that appears in the gallery and the header (the

00:00:48.160 --> 00:00:53.920
large image that usually includes the game's title and serves as the main visual identity on Steam).

00:00:53.920 --> 00:00:59.440
In total, I obtained about 130,000 images of each type, which I resized

00:00:59.440 --> 00:01:05.600
into low-resolution thumbnails for analysis.  There are really so many.  Running the next steps

00:01:05.600 --> 00:01:11.760
on all games wasn't computationally feasible, so I narrowed the dataset to just over 10,000 games.

00:01:11.760 --> 00:01:17.520
To keep it meaningful, I included every game with more than 3,000 reviews and a

00:01:17.520 --> 00:01:26.960
random sample of 5% of the remainder;  approximately 3,700 popular titles and 6,800 smaller titles, including shovelware.

00:01:26.960 --> 00:01:30.720
I then used a type of machine learning model called a neural network,

00:01:30.720 --> 00:01:36.560
specifically EfficientNet-B3, to process the images, treating screenshots and headers as

00:01:36.560 --> 00:01:41.680
two separate groups.  I chose this model because it works well with large

00:01:41.680 --> 00:01:47.600
image datasets and has been shown to identify games from screenshots with high accuracy.

00:01:47.600 --> 00:01:53.280
Neural networks need data to learn patterns.  For training, I used a benchmark dataset

00:01:53.280 --> 00:01:58.640
called ImageNet-1K: over a million images labeled across a thousand categories,

00:01:58.640 --> 00:02:04.400
from animals and vehicles to everyday objects, just to give the model a broad visual foundation.

00:02:05.040 --> 00:02:10.560
Models like this generate huge numerical vectors that describe each image.  In this case,

00:02:10.560 --> 00:02:18.240
more than 1,500 values ​​capture different visual characteristics.  They are too many dimensions for us

00:02:18.240 --> 00:02:25.267
humans to imagine.  So I used an algorithm called T-distributed Stochastic Neighbor Embedding.  We

00:02:25.267 --> 00:02:31.760
usually call it t-SNE for short, and pretend to remember the meaning of the letters.  I used it

00:02:31.760 --> 00:02:36.960
to compress those high-dimensional results into just two dimensions, keeping similar images

00:02:36.960 --> 00:02:42.960
close together and different ones further apart.  Once I had these two-dimensional coordinates,

00:02:42.960 --> 00:02:48.560
I plotted each image as a point on a plane.  And there you have it: a map of game images,

00:02:48.560 --> 00:02:52.160
both for headers and screenshots.

00:02:52.160 --> 00:02:54.800
Exploring the map is fun enough,

00:02:54.800 --> 00:03:00.000
but it gets even more interesting when we start adding metadata.  In the video,

00:03:00.000 --> 00:03:05.280
I will color the dots using different game information extracted from Steam.  Please note that

00:03:05.280 --> 00:03:11.360
the classification pipeline has never seen any of this metadata.  So, if you notice clusters appearing,

00:03:11.360 --> 00:03:17.120
these patterns are things that the model inferred entirely on its own, based only on the images.

00:03:17.120 --> 00:03:23.520
For example, here are the games labeled as 3D;  And here, the ones marked as 2D.  It looks

00:03:23.520 --> 00:03:28.160
like the model decided to place 3D on the left and 2D on the right.

00:03:28.160 --> 00:03:32.880
We can also look at specific genres.  Some have been captured with good accuracy,

00:03:32.880 --> 00:03:38.880
such as racing games or visual novels.  Maybe these images are too representative (for example,

00:03:38.880 --> 00:03:43.760
every racing game shows a racing car), or maybe they are simply easy to identify from the

00:03:43.760 --> 00:03:50.240
training data I used.  Other genres, like platformers or roguelikes,

00:03:50.240 --> 00:03:56.080
don't fit together so clearly.  Maybe they just don't have a unique, distinctive look.

00:03:56.640 --> 00:04:01.760
I'll share these plots so you can explore them for yourself, but for now, here are some of the

00:04:01.760 --> 00:04:06.720
areas that stood out to me.  For example, there's a large group of action games,

00:04:06.720 --> 00:04:13.520
mostly shooters, on the left, and an area I'll kindly avoid in this video, at the top.  The

00:04:13.520 --> 00:04:19.200
large mass in the center is harder to label, but it creates a fluid transition between adjacent groups:

00:04:19.200 --> 00:04:26.640
alongside shooters we find dystopian-looking titles, then sci-fi roads, vehicles and spaceships, top-

00:04:26.640 --> 00:04:33.600
down RPGs, 2D fighting games, 2D platformers, and finally puzzles.

00:04:33.600 --> 00:04:37.440
Overall, the neural network produced a sensible layout:

00:04:37.440 --> 00:04:44.160
images that are closest to each other look really similar, both in scene elements and visual style.

00:04:44.160 --> 00:04:49.280
Without going into too much detail, we can also compare this to the header map.

00:04:49.280 --> 00:04:54.560
Some of the previous groups remain clearly defined, such as racing games.  But others,

00:04:54.560 --> 00:05:00.560
neatly grouped through screenshots, appear much more diverse, such as horror games.

00:05:00.560 --> 00:05:06.720
Interestingly, the neural network was also able to distinguish 2D from 3D games just from the

00:05:06.720 --> 00:05:13.040
header images.  This suggests that these banners contain real gameplay information.  This is the kind of

00:05:13.040 --> 00:05:19.120
information that is actually useful, that players might interpret in the same way as the model.

00:05:19.120 --> 00:05:23.440
It's also fascinating to observe the small islands along the edges of the map,

00:05:23.440 --> 00:05:28.960
fragments of game graphics that the model has chosen to isolate from the rest.  What sets them apart?

00:05:28.960 --> 00:05:34.720
Some correspond to games already known for their originality, especially in their artistic style and graphics.

00:05:35.360 --> 00:05:40.160
Going back to the screenshots, let's start adding some numerical data;  Let's start with the number

00:05:40.160 --> 00:05:46.800
of reviews each game receives, which works as a good indicator of sales and overall popularity.

00:05:46.800 --> 00:05:52.960
To my surprise, there is a clear correlation between screenshots and number of reviews.  Most of the

00:05:52.960 --> 00:05:58.720
big games focus on the left, a high-density area.  And what do they have

00:05:58.720 --> 00:06:07.120
in common?  They're full of action: guns, people running, war scenes, and lots of explosions.

00:06:07.120 --> 00:06:14.320
The Action tag overlaps a lot here, but is used extensively in other titles as well.

00:06:14.320 --> 00:06:23.360
Tags like War, FPS, Military, Tactical, and Shooter also fit well, though none of them uniquely define

00:06:23.360 --> 00:06:30.400
the region.  Among the outlier titles with high reviews are It Takes Two and Lethal Company.

00:06:31.440 --> 00:06:36.800
On the other hand, games with low reviews tend to appear more on the right side of the storyline.

00:06:36.800 --> 00:06:42.880
Now, correlation does not mean causation.  These images aren't necessarily why

00:06:42.880 --> 00:06:48.720
games work the way they do.  Action-packed 3D titles are more likely to come

00:06:48.720 --> 00:06:54.160
from big AAA studios with bigger budgets and marketing power, which leads to higher sales

00:06:54.160 --> 00:06:59.280
and thus more reviews.  So, it's not the screenshots themselves that determine success,

00:06:59.280 --> 00:07:05.440
but the broader context they reflect.  However, it is fascinating that this kind of information

00:07:05.440 --> 00:07:11.920
can be captured in a single frame of the game.  Now, what about review sentiment, the percentage of

00:07:11.920 --> 00:07:16.880
positive reviews each game receives?  How do these screenshots relate to

00:07:16.880 --> 00:07:21.760
the overall reception of a game?  I didn't find much here, but it's still interesting to note that

00:07:21.760 --> 00:07:28.480
predicting public opinion from screenshots alone isn't realistic, at least not with this method.

00:07:28.480 --> 00:07:33.600
By coloring the map by price, we see another clear correlation, similar to the one we found

00:07:33.600 --> 00:07:39.760
with review count.  We can roughly estimate the price of a game from its first screenshot.  However,

00:07:39.760 --> 00:07:44.560
this does not mean that the images define the price.  There is probably a common factor behind both,

00:07:44.560 --> 00:07:49.360
such as certain genres that imply both a typical price range and a visual style.  That said

00:07:50.000 --> 00:07:55.040
, this suggests that gamers associate specific aesthetics with different

00:07:55.040 --> 00:08:00.240
price points, because the pattern is easy to recognize.  From a practical standpoint,

00:08:00.240 --> 00:08:05.360
it seems difficult to justify a high price if a game resembles those at the lower end of the

00:08:05.360 --> 00:08:12.080
spectrum.  Of course I would describe many of these as low budget, and the model captured that aspect.

00:08:12.080 --> 00:08:17.280
This trend, from left to right, from expensive to cheap, is evident in smaller clusters as well, not just the

00:08:17.280 --> 00:08:23.120
main one.  Exploring these isolated groups helps us understand how images communicate

00:08:23.120 --> 00:08:28.560
production value and the importance of solid art direction in creating promotional materials.  It may seem

00:08:28.560 --> 00:08:34.320
trivial, but the data confirms that the images convey the quality of the production and, by extension, the price,

00:08:34.320 --> 00:08:39.760
something that both we and this model can perceive.  But we shouldn't judge a book by its cover:

00:08:39.760 --> 00:08:46.400
we've seen that sentiment is very mixed, and even low-budget titles can get very positive reviews.

00:08:47.120 --> 00:08:53.120
I also wanted to quickly point out that these same patterns manifest themselves when examining game headers.

00:08:53.120 --> 00:08:59.200
The neural network grouped games by number of reviews and price in a similar way, and

00:08:59.200 --> 00:09:05.040
again failed to capture review sentiment.  I find it fascinating that these banners contain almost the

00:09:05.040 --> 00:09:09.920
same information as actual screenshots of the game.  I imagine developers are thinking carefully

00:09:09.920 --> 00:09:15.520
about what their headers communicate.  So far we’ve overlaid the map with

00:09:15.520 --> 00:09:22.240
Steam metadata, but the images themselves are also a rich space to explore.  I wrote some code to

00:09:22.240 --> 00:09:29.200
calculate some basic features at the pixel level.  Here is the dominant color in each image.  It

00:09:29.200 --> 00:09:33.920
turns out to be a rather useful attribute for classification.  Overall,

00:09:33.920 --> 00:09:39.440
I think the red tones dominate.  Some regions are distinguished by their characteristic colors:

00:09:39.440 --> 00:09:45.280
the lower area shows a lot of green, in line with the many landscape scenes present in that part of the map;

00:09:45.280 --> 00:09:52.080
action titles tend towards an orange hue, with lots of explosions and fire;  and the

00:09:52.080 --> 00:09:58.720
upper region shows a lot of pink, often associated with anime and adult titles, where character art tends

00:09:58.720 --> 00:10:05.120
to focus on lighter skin tones.  However, there is clearly a wide range of artistic diversity,

00:10:05.120 --> 00:10:10.880
games use color in very different ways.  Image brightness is another

00:10:10.880 --> 00:10:17.120
interesting aspect.  The neural network clearly grouped games based on this value, although it didn't treat it as a

00:10:17.120 --> 00:10:23.760
major factor.  Looking closely, the brightness appears to form smaller clusters within larger clusters.

00:10:23.760 --> 00:10:28.720
For example, while the 3D-2D distinction dominates from left to right, brightness

00:10:28.720 --> 00:10:35.040
acts as a subdivision within these groups.  Some genres are visually defined by brightness:

00:10:35.040 --> 00:10:42.320
the two extremes are Horror and Arcade games, which are dark and light respectively.  And if we focus on the

00:10:42.320 --> 00:10:49.280
group of highly reviewed titles we looked at earlier, they fall roughly in the middle of the brightness range.

00:10:49.280 --> 00:10:53.280
We notice a similar trend with saturation: the intensity of the color,

00:10:53.280 --> 00:10:59.360
or how vivid it appears.  Most games, but especially the bigger titles, fall into the mid-range.

00:10:59.360 --> 00:11:04.960
Highly saturated images tend to cluster on the right side of the map.  It's not perfectly clear,

00:11:04.960 --> 00:11:10.080
but it doesn't seem coincidental either.  Remember, that's where we found games with fewer reviews

00:11:10.080 --> 00:11:17.440
and lower prices.  Perhaps higher budget titles prefer more realistic and less saturated images.

00:11:17.440 --> 00:11:21.200
So, in terms of design, it seems like there are some clear conventions,

00:11:21.200 --> 00:11:25.920
especially within certain genres, but there's still a lot of room for artistic freedom.  I'll

00:11:25.920 --> 00:11:30.480
let you explore these insights for the header case on your own, along with some other

00:11:30.480 --> 00:11:35.440
interesting facts I left out of this video.  There is a link to the graphs in the description.

00:11:35.440 --> 00:11:41.600
And if you want to learn more, you can become a member on Patreon for access to the entire project.

00:11:41.600 --> 00:11:46.880
This exercise demonstrated that even a single low-resolution frame of a game can contain a lot of

00:11:46.880 --> 00:11:51.920
useful information.  Perhaps a similar pipeline could be useful for things like

00:11:51.920 --> 00:11:58.960
gender detection or auto-tagging based on visual cues.  However, in this exploratory context,

00:11:58.960 --> 00:12:04.640
it is difficult to draw general conclusions.  The Gaming Map is most useful when used for specific questions.

00:12:04.640 --> 00:12:11.040
Developers could use it as a reference, a source of ideas, or simply inspiration for art direction,

00:12:11.040 --> 00:12:17.120
exploring both clusters and more unique ones.  The method has several limitations,

00:12:17.120 --> 00:12:21.200
but that's okay.  The goal was to look at the data from a different, more visual angle

00:12:21.200 --> 00:12:24.960
and stimulate new ways of thinking.  Building the pipeline

00:12:24.960 --> 00:12:29.760
also pushed me to study topics I wasn't very familiar with, such as neural networks.  If you'd like to

00:12:29.760 --> 00:12:34.240
learn more about this topic, I recommend this video's sponsor: Brilliant.

00:12:34.240 --> 00:12:38.640
If you've made it this far, you're probably interested in these topics.

00:12:38.640 --> 00:12:42.400
Brilliant turns anyone into a science enthusiast, with fun images,

00:12:42.400 --> 00:12:47.920
but also through interactive problem solving.  Their computer science courses help you build a

00:12:47.920 --> 00:12:52.000
solid foundation, even if you're just starting out, and gain the

00:12:52.000 --> 00:12:58.000
confidence to tackle more complex ideas.  The lessons are taught by real human experts and

00:12:58.000 --> 00:13:04.800
cover everything from algorithmic thinking to artificial intelligence and, yes, neural networks.

00:13:04.800 --> 00:13:08.880
Personally, I find Brilliant extremely useful for keeping up to date and brushing up on

00:13:08.880 --> 00:13:15.120
skills I'm a bit rusty on, but also as a simple yet comprehensive way to explore new topics.

00:13:15.120 --> 00:13:20.720
To learn about Brilliant for free, visit brilliant.org/NewbieIndieGameDev,

00:13:20.720 --> 00:13:25.360
scan the QR code on the screen, or click the link in the description.  Brilliant has also

00:13:25.360 --> 00:13:30.000
offered our viewers a 20% discount on their annual Premium membership, which gives you

00:13:30.000 --> 00:13:34.800
unlimited daily access to everything Brilliant has to offer.  I'm sure you'll learn a lot.  I

00:13:34.800 --> 00:13:41.440
highly encourage you to try it.  Well, see you next time.

