SlideShare ist ein Scribd-Unternehmen logo
1 von 44
Downloaden Sie, um offline zu lesen
In-game Content Generation using
Machine Learning
Raheel Yawar
Game Developer, Flying Sheep Studios
Who am I?
● Raheel Yawar
○ Game Developer @ Flying Sheep Studios
○ Mobile and HTML5 game development
○ MSc Media Informatics
○ ML/ AI Enthusiast
● @raheelyawar
Flying Sheep Studios
● Founded in 2014 in Cologne Germany
● Over 150 cross-platform HTML5 games
● Worked with over 50 brands
● Team of 17 people
○ 47% women
○ 35% internationals
Recommender
What are Recommender Systems?
What is this about?
● Motivation
● Action RPG Introduction
● Machine Learning Methods
● Pros and Cons
● Results and Findings
Note: This talk is beginner friendly
Motivation
Doom, id Software
Player Tailored Content
The Walking Dead, Telltale Games
Mass Effect, BioWare
Flow
The Game
● Single Player Hack n’ Slash Dungeon
Crawler Role Playing Game
● Free-2-Play
● Cross-platform HTML5
● Created using Three.js and Phaser
● Gameplay spans over
○ 30 levels
○ 9 story quests
○ Virtually infinite side-quests
http://www.toggo.de/spiele/trolljaeger/abenteuer-in-den-trollhoehlen-4774.htm
Quest Types
● Collection
● Combat
● Rescue
● Collection (Unique)
● Combat (Boss)
Collection Combat
Rescue Boss
The Quest Givers
Enemies
Environments
Procedural Content Generation
● Input: Seed and Difficulty Value
● Output: Quest and Level
PCG – Level Generation
The System
Recommender ServerGame Client
Player Statistics
Quests
The Recommender System
● Basic Client-Server architecture
● Built using Golang and Python
● MariaDB used for storage
Tracking Data - Quest
1. Quest environment
2. Quest Giver (NPC)
3. Difficulty Value (1 to 30+)
4. Quest Phases
5. Player Skill Build (Level, Strength, Agility, Damage)
6. Weapon Accuracy
7. Completion Time
8. Health Lost
9. Quest completion (Retries, Abandonment)
Quest Feedback
● Explicit Feedback
○ Ratings
● Implicit Feedback
○ Tracking
Did you enjoy
playing the last
quest?
Recommender System Types
● Procedural Content Generation
● Pre-generated 90,000 quests
● Content-Based/ Rule-Based Filtering
● Collaborative Filtering
○ Neighbourhood Filtering
○ Matrix Factorization
○ Tensor Factorization
The Content-Based Method
● Weapon Accuracy
● Health Lost
● Failure Rate
● Quest Features
○ Environment
○ Quest Giver
○ Phase Types
The Content-Based Method
Global Average Accuracy
40%
Player Average Accuracy
25%
The Content-Based Method
Piecewise Function of Average Accuracy
The Content-Based Method
The Content-Based Method
● Easy to formulate
● Small runtime
● Need to be tailor made
● Iterations needed
● Can miss out on information
Collaborative Filtering
Collaborative Filtering
Users/ Movie Lego Movie Expendables Notebook
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
User/ Movie Ratings - Utility Matrix
Collaborative Filtering
Users/ Movie Lego Movie Expendables Notebook
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Utility Matrix
Cosine Similarity of User 1 and User 3
Collaborative Filtering
Users/ Quest Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Utility Matrix
Collaborative Filtering
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Utility Matrices
Collaborative Filtering
● Level (25%)
● Strength (10%)
● Agility (10%)
● Damage (10%)
● Health Lost (25%)
● Accuracy (15%)
● Time Duration (5%)
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Utility Matrices
Collaborative Filtering
● Level (25%)
● Strength (10%)
● Agility (10%)
● Damage (10%)
● Health Lost (25%)
● Accuracy (15%)
● Time Duration (5%)
Collaborative Filtering - Neighbourhood
Construct
Utility
Matrices
Compute
Cosine
Similarity
Weight
Cosine
Similarity
Measure
Pick
Users
with
Highest
Similarity
Choose
Quests
Collaborative Filtering – Matrix Factorization
Construct
Utility
Matrices
SVD
Compute
Cosine
Similarity
Weight
Cosine
Similarity
Measure
Pick
Users
with
Highest
Similarity
Choose
Quests
Collaborative Filtering - Tensor Factorization
Construct
Utility
Matrices
Dual
DEDICOM
Compute
Cosine
Similarity
Weight
Cosine
Similarity
Measure
Pick Users
with
Highest
Similarity
Choose
Quests
Collaborative Filtering – Learnings
● Applicable over a variety of scenarios
● Can detect latent factors
● Low maintenance
● Cold start problem
● Resource intensive
Level (25%)
Strength (10%)
Agility (10%)
Damage (10%)
Health Lost (25%)
Accuracy (15%)
Time Duration (5%)
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Users/ Movie Quest 1 Quest 2 Quest 3
User 1 5 5 1
User 2 3 1 5
User 3 5 - 1
User 4 3 1 -
Test Approach
● Approach
○ Round Robin Assignment
○ Bucket Testing with PCG group
● 25,686 players
Results – Quest Failure & Abandonment Rates
Quest Failure Rate Quest Abandonment Rate
Results – Retention Rate
Baseline
(PCG)
Content Based
(CB)
Neighbourhoo
d Oriented
(NO)
Matrix
Factorization
(MF)
Tensor
Factorization
(RTDD)
Day 1 8.21 8.64 7.79 8.92 8.93
Day 2 5.62 6.62 5.90 6.49 6.78
Day 3 3.96 4.64 4.40 4.55 4.74
Day 4 2.88 3.49 2.89 3.30 3.48
Day 5 2.02 2.44 1.82 1.94 2.30
Day 6 1.19 1.55 1.11 1.25 1.51
Day 7 0.25 0.54 0.61 0.47 0.72
Average 3.45 3.99 3.50 3.85 4.07
Summary
● Need for better tailored content
● ML/ AI algorithms can be used to:
○ Better identify player profiles
○ Tailor procedurally generated content
○ Matrix/ Tensor based approaches outperform rule-based approaches
References
● Matrix and Tensor Factorization Based
Game Content Recommender Systems:
A Bottom-Up Architecture and a
Comparative Online Evaluation, AIIDE
2018
● Clip Art: https://flaticon.com
Thank You
● Raheel Yawar
○ Game Developer
○ Flying Sheep Studios
● Website: http://raheelyawar.com/
● Twitter: @raheelyawar

Weitere ähnliche Inhalte

Mehr von SeriousGamesAssoc

Playful Learning Without Games
Playful Learning Without GamesPlayful Learning Without Games
Playful Learning Without GamesSeriousGamesAssoc
 
Client-Centered Serious Game Design
Client-Centered Serious Game DesignClient-Centered Serious Game Design
Client-Centered Serious Game DesignSeriousGamesAssoc
 
A Promise to Future Generations: Making Learning Fun
A Promise to Future Generations: Making Learning FunA Promise to Future Generations: Making Learning Fun
A Promise to Future Generations: Making Learning FunSeriousGamesAssoc
 
Lets make a game workshop ser play orlando 2019
Lets make a game workshop ser play orlando 2019Lets make a game workshop ser play orlando 2019
Lets make a game workshop ser play orlando 2019SeriousGamesAssoc
 
0 for 3: Edtech Startup Lessons Learned
0 for 3: Edtech Startup Lessons Learned0 for 3: Edtech Startup Lessons Learned
0 for 3: Edtech Startup Lessons LearnedSeriousGamesAssoc
 
OODA OODA! How Rapid Iteration Can Help Level Up Your Gaming Business
OODA OODA! How Rapid Iteration Can Help Level Up Your Gaming BusinessOODA OODA! How Rapid Iteration Can Help Level Up Your Gaming Business
OODA OODA! How Rapid Iteration Can Help Level Up Your Gaming BusinessSeriousGamesAssoc
 
The ux of serious games how to impact a wider audience
The ux of serious games  how to impact a wider audienceThe ux of serious games  how to impact a wider audience
The ux of serious games how to impact a wider audienceSeriousGamesAssoc
 
Alphabet Soup Cans: Avoiding Bad Tropes of Educational Games
Alphabet Soup Cans: Avoiding Bad Tropes of Educational GamesAlphabet Soup Cans: Avoiding Bad Tropes of Educational Games
Alphabet Soup Cans: Avoiding Bad Tropes of Educational GamesSeriousGamesAssoc
 
Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...
Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...
Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...SeriousGamesAssoc
 
Augmented Reality: Revolutionary or Disruptor of Training and Assessment
Augmented Reality: Revolutionary or Disruptor of Training and AssessmentAugmented Reality: Revolutionary or Disruptor of Training and Assessment
Augmented Reality: Revolutionary or Disruptor of Training and AssessmentSeriousGamesAssoc
 
Return on Investment (ROI) for Virtual Environments and Gaming
Return on Investment (ROI) for Virtual Environments and GamingReturn on Investment (ROI) for Virtual Environments and Gaming
Return on Investment (ROI) for Virtual Environments and GamingSeriousGamesAssoc
 
Enhancing New Employee Orientation with a Digital Scavenger Hunt
Enhancing New Employee Orientation with a Digital Scavenger HuntEnhancing New Employee Orientation with a Digital Scavenger Hunt
Enhancing New Employee Orientation with a Digital Scavenger HuntSeriousGamesAssoc
 
Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...
Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...
Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...SeriousGamesAssoc
 
Unity in the Classroom for Creating VR Sims and Edugames
Unity in the Classroom for Creating VR Sims and EdugamesUnity in the Classroom for Creating VR Sims and Edugames
Unity in the Classroom for Creating VR Sims and EdugamesSeriousGamesAssoc
 
The 2019-2024 Global Game-based Learning Market
The 2019-2024 Global Game-based Learning MarketThe 2019-2024 Global Game-based Learning Market
The 2019-2024 Global Game-based Learning MarketSeriousGamesAssoc
 
EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...
EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...
EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...SeriousGamesAssoc
 
Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...
Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...
Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...SeriousGamesAssoc
 
Games, Social Impact, and Student Outcomes
Games, Social Impact, and Student OutcomesGames, Social Impact, and Student Outcomes
Games, Social Impact, and Student OutcomesSeriousGamesAssoc
 
Augmenting Behavioral Health Provider Training in Second Life
Augmenting Behavioral Health Provider Training in Second LifeAugmenting Behavioral Health Provider Training in Second Life
Augmenting Behavioral Health Provider Training in Second LifeSeriousGamesAssoc
 
The Little Program That Could: Simulation Program Development - Our Journey
The Little Program That Could: Simulation Program Development - Our JourneyThe Little Program That Could: Simulation Program Development - Our Journey
The Little Program That Could: Simulation Program Development - Our JourneySeriousGamesAssoc
 

Mehr von SeriousGamesAssoc (20)

Playful Learning Without Games
Playful Learning Without GamesPlayful Learning Without Games
Playful Learning Without Games
 
Client-Centered Serious Game Design
Client-Centered Serious Game DesignClient-Centered Serious Game Design
Client-Centered Serious Game Design
 
A Promise to Future Generations: Making Learning Fun
A Promise to Future Generations: Making Learning FunA Promise to Future Generations: Making Learning Fun
A Promise to Future Generations: Making Learning Fun
 
Lets make a game workshop ser play orlando 2019
Lets make a game workshop ser play orlando 2019Lets make a game workshop ser play orlando 2019
Lets make a game workshop ser play orlando 2019
 
0 for 3: Edtech Startup Lessons Learned
0 for 3: Edtech Startup Lessons Learned0 for 3: Edtech Startup Lessons Learned
0 for 3: Edtech Startup Lessons Learned
 
OODA OODA! How Rapid Iteration Can Help Level Up Your Gaming Business
OODA OODA! How Rapid Iteration Can Help Level Up Your Gaming BusinessOODA OODA! How Rapid Iteration Can Help Level Up Your Gaming Business
OODA OODA! How Rapid Iteration Can Help Level Up Your Gaming Business
 
The ux of serious games how to impact a wider audience
The ux of serious games  how to impact a wider audienceThe ux of serious games  how to impact a wider audience
The ux of serious games how to impact a wider audience
 
Alphabet Soup Cans: Avoiding Bad Tropes of Educational Games
Alphabet Soup Cans: Avoiding Bad Tropes of Educational GamesAlphabet Soup Cans: Avoiding Bad Tropes of Educational Games
Alphabet Soup Cans: Avoiding Bad Tropes of Educational Games
 
Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...
Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...
Building Heroes: Using Roleplaying Game Design for Classroom Management, Read...
 
Augmented Reality: Revolutionary or Disruptor of Training and Assessment
Augmented Reality: Revolutionary or Disruptor of Training and AssessmentAugmented Reality: Revolutionary or Disruptor of Training and Assessment
Augmented Reality: Revolutionary or Disruptor of Training and Assessment
 
Return on Investment (ROI) for Virtual Environments and Gaming
Return on Investment (ROI) for Virtual Environments and GamingReturn on Investment (ROI) for Virtual Environments and Gaming
Return on Investment (ROI) for Virtual Environments and Gaming
 
Enhancing New Employee Orientation with a Digital Scavenger Hunt
Enhancing New Employee Orientation with a Digital Scavenger HuntEnhancing New Employee Orientation with a Digital Scavenger Hunt
Enhancing New Employee Orientation with a Digital Scavenger Hunt
 
Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...
Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...
Creating a Low Cost Obstetric Clinical Immersion Simulation for Medical and N...
 
Unity in the Classroom for Creating VR Sims and Edugames
Unity in the Classroom for Creating VR Sims and EdugamesUnity in the Classroom for Creating VR Sims and Edugames
Unity in the Classroom for Creating VR Sims and Edugames
 
The 2019-2024 Global Game-based Learning Market
The 2019-2024 Global Game-based Learning MarketThe 2019-2024 Global Game-based Learning Market
The 2019-2024 Global Game-based Learning Market
 
EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...
EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...
EXCALIBUR: Creating a Story and Gaming Academy for Middle Schoolers – Hits an...
 
Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...
Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...
Simulating Patients for Healthcare Training: Appearance, Shape, Influence, an...
 
Games, Social Impact, and Student Outcomes
Games, Social Impact, and Student OutcomesGames, Social Impact, and Student Outcomes
Games, Social Impact, and Student Outcomes
 
Augmenting Behavioral Health Provider Training in Second Life
Augmenting Behavioral Health Provider Training in Second LifeAugmenting Behavioral Health Provider Training in Second Life
Augmenting Behavioral Health Provider Training in Second Life
 
The Little Program That Could: Simulation Program Development - Our Journey
The Little Program That Could: Simulation Program Development - Our JourneyThe Little Program That Could: Simulation Program Development - Our Journey
The Little Program That Could: Simulation Program Development - Our Journey
 

Kürzlich hochgeladen

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Kürzlich hochgeladen (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

In-game Content Generation using Machine Learning

  • 1. In-game Content Generation using Machine Learning Raheel Yawar Game Developer, Flying Sheep Studios
  • 2. Who am I? ● Raheel Yawar ○ Game Developer @ Flying Sheep Studios ○ Mobile and HTML5 game development ○ MSc Media Informatics ○ ML/ AI Enthusiast ● @raheelyawar
  • 3. Flying Sheep Studios ● Founded in 2014 in Cologne Germany ● Over 150 cross-platform HTML5 games ● Worked with over 50 brands ● Team of 17 people ○ 47% women ○ 35% internationals
  • 6. What is this about? ● Motivation ● Action RPG Introduction ● Machine Learning Methods ● Pros and Cons ● Results and Findings Note: This talk is beginner friendly
  • 8. Player Tailored Content The Walking Dead, Telltale Games Mass Effect, BioWare
  • 10. The Game ● Single Player Hack n’ Slash Dungeon Crawler Role Playing Game ● Free-2-Play ● Cross-platform HTML5 ● Created using Three.js and Phaser ● Gameplay spans over ○ 30 levels ○ 9 story quests ○ Virtually infinite side-quests http://www.toggo.de/spiele/trolljaeger/abenteuer-in-den-trollhoehlen-4774.htm
  • 11.
  • 12. Quest Types ● Collection ● Combat ● Rescue ● Collection (Unique) ● Combat (Boss) Collection Combat Rescue Boss
  • 16. Procedural Content Generation ● Input: Seed and Difficulty Value ● Output: Quest and Level
  • 17. PCG – Level Generation
  • 18. The System Recommender ServerGame Client Player Statistics Quests
  • 19. The Recommender System ● Basic Client-Server architecture ● Built using Golang and Python ● MariaDB used for storage
  • 20. Tracking Data - Quest 1. Quest environment 2. Quest Giver (NPC) 3. Difficulty Value (1 to 30+) 4. Quest Phases 5. Player Skill Build (Level, Strength, Agility, Damage) 6. Weapon Accuracy 7. Completion Time 8. Health Lost 9. Quest completion (Retries, Abandonment)
  • 21. Quest Feedback ● Explicit Feedback ○ Ratings ● Implicit Feedback ○ Tracking Did you enjoy playing the last quest?
  • 22. Recommender System Types ● Procedural Content Generation ● Pre-generated 90,000 quests ● Content-Based/ Rule-Based Filtering ● Collaborative Filtering ○ Neighbourhood Filtering ○ Matrix Factorization ○ Tensor Factorization
  • 23. The Content-Based Method ● Weapon Accuracy ● Health Lost ● Failure Rate ● Quest Features ○ Environment ○ Quest Giver ○ Phase Types
  • 24. The Content-Based Method Global Average Accuracy 40% Player Average Accuracy 25%
  • 25. The Content-Based Method Piecewise Function of Average Accuracy
  • 27. The Content-Based Method ● Easy to formulate ● Small runtime ● Need to be tailor made ● Iterations needed ● Can miss out on information
  • 29. Collaborative Filtering Users/ Movie Lego Movie Expendables Notebook User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - User/ Movie Ratings - Utility Matrix
  • 30. Collaborative Filtering Users/ Movie Lego Movie Expendables Notebook User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Utility Matrix Cosine Similarity of User 1 and User 3
  • 31. Collaborative Filtering Users/ Quest Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Utility Matrix
  • 32. Collaborative Filtering Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Utility Matrices
  • 33. Collaborative Filtering ● Level (25%) ● Strength (10%) ● Agility (10%) ● Damage (10%) ● Health Lost (25%) ● Accuracy (15%) ● Time Duration (5%) Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Utility Matrices
  • 34. Collaborative Filtering ● Level (25%) ● Strength (10%) ● Agility (10%) ● Damage (10%) ● Health Lost (25%) ● Accuracy (15%) ● Time Duration (5%)
  • 35. Collaborative Filtering - Neighbourhood Construct Utility Matrices Compute Cosine Similarity Weight Cosine Similarity Measure Pick Users with Highest Similarity Choose Quests
  • 36. Collaborative Filtering – Matrix Factorization Construct Utility Matrices SVD Compute Cosine Similarity Weight Cosine Similarity Measure Pick Users with Highest Similarity Choose Quests
  • 37. Collaborative Filtering - Tensor Factorization Construct Utility Matrices Dual DEDICOM Compute Cosine Similarity Weight Cosine Similarity Measure Pick Users with Highest Similarity Choose Quests
  • 38. Collaborative Filtering – Learnings ● Applicable over a variety of scenarios ● Can detect latent factors ● Low maintenance ● Cold start problem ● Resource intensive Level (25%) Strength (10%) Agility (10%) Damage (10%) Health Lost (25%) Accuracy (15%) Time Duration (5%) Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 - Users/ Movie Quest 1 Quest 2 Quest 3 User 1 5 5 1 User 2 3 1 5 User 3 5 - 1 User 4 3 1 -
  • 39. Test Approach ● Approach ○ Round Robin Assignment ○ Bucket Testing with PCG group ● 25,686 players
  • 40. Results – Quest Failure & Abandonment Rates Quest Failure Rate Quest Abandonment Rate
  • 41. Results – Retention Rate Baseline (PCG) Content Based (CB) Neighbourhoo d Oriented (NO) Matrix Factorization (MF) Tensor Factorization (RTDD) Day 1 8.21 8.64 7.79 8.92 8.93 Day 2 5.62 6.62 5.90 6.49 6.78 Day 3 3.96 4.64 4.40 4.55 4.74 Day 4 2.88 3.49 2.89 3.30 3.48 Day 5 2.02 2.44 1.82 1.94 2.30 Day 6 1.19 1.55 1.11 1.25 1.51 Day 7 0.25 0.54 0.61 0.47 0.72 Average 3.45 3.99 3.50 3.85 4.07
  • 42. Summary ● Need for better tailored content ● ML/ AI algorithms can be used to: ○ Better identify player profiles ○ Tailor procedurally generated content ○ Matrix/ Tensor based approaches outperform rule-based approaches
  • 43. References ● Matrix and Tensor Factorization Based Game Content Recommender Systems: A Bottom-Up Architecture and a Comparative Online Evaluation, AIIDE 2018 ● Clip Art: https://flaticon.com
  • 44. Thank You ● Raheel Yawar ○ Game Developer ○ Flying Sheep Studios ● Website: http://raheelyawar.com/ ● Twitter: @raheelyawar