• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:33
CEST 22:33
KST 05:33
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Maestros of the Game: Week 1/Play-in Preview9[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy12
Community News
LiuLi Cup - September 2025 Tournaments2Weekly Cups (August 25-31): Clem's Last Straw?39Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris47Weekly Cups (Aug 11-17): MaxPax triples again!15
StarCraft 2
General
Weekly Cups (August 25-31): Clem's Last Straw? Team Liquid Map Contest #21 - Presented by Monster Energy Heaven's Balance Suggestions (roast me) Geoff 'iNcontroL' Robinson has passed away Speculation of future Wardii series
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris RSL: Revival, a new crowdfunded tournament series LiuLi Cup - September 2025 Tournaments Sea Duckling Open (Global, Bronze-Diamond) Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
External Content
Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies
Brood War
General
Pros React To: herO's Baffling Game BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion BSL Polish World Championship 2025 20-21 September ASL20 General Discussion
Tourneys
Is there English video for group selection for ASL Small VOD Thread 2.0 [Megathread] Daily Proleagues [ASL20] Ro24 Group F
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Path of Exile Stormgate/Frost Giant Megathread Warcraft III: The Frozen Throne
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread YouTube Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1775 users

Heuristics for Hotkey-based Player Identification

Blogs > Loser777
Post a Reply
Loser777
Profile Blog Joined January 2008
1931 Posts
Last Edited: 2013-09-20 03:51:03
September 19 2013 22:39 GMT
#1
This is the accompanying blog post to this thread:
http://www.teamliquid.net/forum/viewmessage.php?topic_id=429661

Please check that out before reading this!

That control group configurations allow skilled individuals to identify smurfs
has been known since the days of Brood War and notably demonstrated by roMAD. I
present a small collection of heuristics for systematically evaluating the
similarity between different hotkey setups and subsequently a method for
replay-based player identification. Some of these techniques are currently
implemented in vroMAD. These techniques will hopefully allow for the automatic
identification of players from large repositories of replay data.

Similarity Measures
Similarity measures are used in a wide variety of disciplines ranging from
applied mathematics to bioinformatics. They are commonly used in similarity
matrices, which can be thought of as a graph describing how close a given data
point is to another. We can adopt the idea of a similarity measure to hotkey
setups used by various players. The relevant question posed is: given two
players, how can we quantify how similar their hotkey setups are?

If we have a quantification of similarity between hotkey setups, we can do
several things:
  • Generate a ranking of similarity between players from an anonymous/"unknown"
    replay and a database of replays with confirmed player identifications
  • Cluster players from replays into groups with similar setups
  • From the clusters, classify players


At the moment, vroMAD only does the first of those things.

Now, we move into the juicy details and introduce three similarity models:

Frequency-Distribution Based Similarity
This "low-hanging fruit" (I know people hate this phrase) is the similarity
measure is currently implemented in vroMAD because of its extreme simplicity.
Frequency-Distributions of hotkey selection are generated from replay data. That
is, given the player data from a replay, we proceed as follows:
1. Extract all hotkey selections
2. Bin each of these selections according to their number {0,1,2,3,4,5,6,7,8,9}
3. Generate a frequency distribution vector in R^10 space where each element
corresponds to the frequency of selection of a specific hotkey.

Example vector: [0 0.5 0.2 0.2 0.3 0.1 0 0 0 0] (selections/second)

4. Calculate a similarity using a Gaussian function: given player 1 with
frequency distribution x1 and player 2 with frequency distribution x2, we
compute exp(-((x1-x2)^2)/2(sigma)^2). In this case, we take sigma as the
standard deviation of data with respect to each of the dimensions.

Note that this measure is theoretically race-agnostic. That is, it is not
directly influenced by a player's race, as it is not mapped to any race-specific
unit or buildings. This is what I refer to as a "roMAD-complete" similarity
measure, as it can be used to inform on players suspected of offracing. (roMAD
was famously able to identify off-racing progamers just from their hotkey
setups)


Fixed Unit Mapping Based Similarity
This is the "most-obvious" model for identification, and works as follows: given
a player and a race, we generate a vector in R^10 where the value of each
dimension corresponds to a race-specific unit e.g. Drone/Hatchery/Queen/Roach
for Zerg. For hotkeys with multiple types of units bound, we simply choose the
most frequent unit or adopt a similar technique. This technique is not
"roMAD-complete" unless we choose a very general mapping of unit types to
numbers. With a hotkey vector for each player, we apply the Gaussian function as
described previously.

For the sake of example, say we have a Zerg player and 1 maps to Roach, 2 to
Hydra, 4 to Hatchery, 5 to Queen, and 7 to Infestor. -1 Maps to no-selection.
Example vector: [-1 1 2 7 4 5 -1 -1 -1 -1] (unitless)

Floating Unit Mapping Based Similarity
We can improve formulation of "Fixed Unit Mapping Based Similarity". This is
because of each of these techniques attempt to map a hotkey setup into some
vector space and compute a similarity based on distance. However, it can be
seen that "Fixed Unit Mapping Based Similarity" doesn't generalize well to the
concept of distance. That is, (given two Zerg players) if one binds
control-group 1 to Roaches only, and other to Zerglings only, what is the
distance between their setups? Even if we say ground units are closer to other
ground units and further from air units and even further from buildings, "Fixed
Unit Mapping Based Similarity" remains an awkward model. To address this
problem, I introduce the "floating" version of this model. This model switches
the organization of the vector: that is, we instead define classes or types of
units a priori as the dimensions of our vector and assign values based on the
control-group number. Here, "floating" refers to the dimension of the vector.
This model generalizes better to the idea of a distance: we can say hotkey
setups where a given type of unit is mapped 1 key apart are closer than hotkey
setups where the same type of unit is mapped 4 keys apart. To compute a
similarity from this model, we again apply the Gaussian function described
previously. Note that the "roMAD-completeness" of this model depends on whether
we choose classes to be abstract such as "air units/ground units/buildings" or
race-specifc units.

For the sake of example, we define the first dimension as
Marine/Marauder/Medivac, the second as Viking/Banshee/Raven, the third as
Spellcasters, the fourth as Command Centers, the Fifth as ground production, the
Sixth as air production, and the Seventh as upgrades.
Example vector: [1 3 2 6 4 5 6] (unitless coordinates, but generalizes to
distance)


Note on the Gaussian function used:
The Gaussian function used has a range of (0, 1], and essentially operates
on the raw Euclidean distance of the vectors. Identical vectors have similarity
1, whereas very dissimilar vectors will have a similarity close to 0. For
experimental purposes, vroMAD also includes the ability to rank based on the raw
Euclidean distance in vroMAD. A high similarity corresponds to low Euclidean
distance, and vice versa.

***
6581
purakushi
Profile Joined August 2012
United States3300 Posts
Last Edited: 2013-09-19 22:48:04
September 19 2013 22:47 GMT
#2
Really neat stuff! Keep up the cool work~
I like reading what people do with their coding skills. :D
T P Z sagi
EatThePath
Profile Blog Joined September 2009
United States3943 Posts
September 20 2013 15:51 GMT
#3
thanks for the writeup
Comprehensive strategic intention: DNE
Please log in or register to reply.
Live Events Refresh
Maestros of the Game
17:00
Group Stage - Group A
Classic vs TriGGeR
Reynor vs SHIN
ComeBackTV 1322
SteadfastSC526
IndyStarCraft 184
CranKy Ducklings178
EnkiAlexander 63
Rex49
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SteadfastSC 526
IndyStarCraft 184
BRAT_OK 90
ProTech87
JuggernautJason81
Rex 49
StarCraft: Brood War
Britney 22140
EffOrt 1027
Larva 332
hero 231
Dewaltoss 124
TY 124
firebathero 122
Bonyth 93
sSak 64
Aegong 30
[ Show more ]
NaDa 18
Dota 2
The International24585
420jenkins80
monkeys_forever52
Counter-Strike
Stewie2K435
Heroes of the Storm
Liquid`Hasu347
Other Games
summit1g3621
FrodaN1216
fl0m524
mouzStarbuck300
ToD196
C9.Mang0155
SortOf139
Livibee119
Mew2King45
PPMD26
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• musti20045 35
• davetesta15
• StrangeGG 9
• Reevou 6
• IndyKCrew
• AfreecaTV YouTube
• sooper7s
• intothetv
• Kozan
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• Michael_bg 5
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21452
League of Legends
• TFBlade923
Counter-Strike
• imaqtpie1034
• Shiphtur175
Upcoming Events
OSC
6h 28m
MaNa vs SHIN
SKillous vs ShoWTimE
Bunny vs TBD
Cham vs TBD
RSL Revival
13h 28m
Reynor vs Astrea
Classic vs sOs
Maestros of the Game
20h 28m
Serral vs Ryung
ByuN vs Zoun
BSL Team Wars
22h 28m
Team Bonyth vs Team Dewalt
CranKy Ducklings
1d 13h
RSL Revival
1d 13h
GuMiho vs Cham
ByuN vs TriGGeR
Cosmonarchy
1d 17h
TriGGeR vs YoungYakov
YoungYakov vs HonMonO
HonMonO vs TriGGeR
Maestros of the Game
1d 20h
Solar vs Bunny
Clem vs Rogue
[BSL 2025] Weekly
1d 21h
RSL Revival
2 days
Cure vs Bunny
Creator vs Zoun
[ Show More ]
Maestros of the Game
2 days
Maru vs Lambo
herO vs ShoWTimE
BSL Team Wars
2 days
Team Hawk vs Team Sziky
Sparkling Tuna Cup
3 days
Monday Night Weeklies
3 days
The PondCast
6 days
Liquipedia Results

Completed

CSL Season 18: Qualifier 2
SEL Season 2 Championship
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL 2025 AUTUMN (S18)
RSL Revival: Season 2
Maestros of the Game
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

LASL Season 20
2025 Chongqing Offline CUP
BSL Polish World Championship 2025 – Warsaw LAN
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
EC S1
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.