Pinkvinus commited on
Commit
c70448b
·
verified ·
1 Parent(s): 6146b47

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +166 -3
README.md CHANGED
@@ -1,3 +1,166 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - Game
7
+ - Counter-Strike
8
+ - CS2
9
+ - Counter-Strike 2
10
+ - Video Game
11
+ - Cheat Detection
12
+ - Gameplay
13
+ pretty_name: Counter-Strike 2 Cheat Detection
14
+ size_categories:
15
+ - n<1K
16
+ ---
17
+
18
+ # Counter Strike 2 Cheat Detection Dataset
19
+
20
+ ## Overview
21
+
22
+ The **CS2CD (Counter-Strike 2 Cheat Detection)** dataset is an anonymised dataset comprised of Counter-Strike 2(CS2) gameplay at a variety of skill-levels with cheater annotations. This dataset contains NUMBER CS2 matches with no cheater present, and NUMBER matches CS2 matches with at least one cheater present.
23
+
24
+ ## Dataset structure
25
+
26
+ The dataset is partitioned into data with at least one cheater present, and data with no cheaters present.
27
+
28
+ > ⚠️
29
+ > Only files, containing at least one VAC(Valve Anti-cheat)-banned player, have been manually labelled and verified. Hence, **cheaters may be present in the data without cheaters**.
30
+ > When examining a subset of NUMBER data points in the set of matches with no VAC-banned players, it was discovered that in NUMBER% of players in these matches were not presenting any cheater-like behaviour.
31
+ > When examining a subset of NUMBER data points in the set of matches with with at least one VAC-banned players, it was discovered that in NUMBER% of players in these matches were not presenting any cheater-like behaviour[[TODO:CITE OUR PAPER]()]. This is possibly due to CS2 using [trust factor match making](https://help.steampowered.com/en/faqs/view/00EF-D679-C76A-C185).
32
+ > Hence, it was decided, that resources were best spent with labeling data containing at least one VAC-banned player.
33
+
34
+ ### Root folder
35
+
36
+ - `no_cheater_present` : Folder containing data where no cheaters are present.
37
+ - `with_cheater_present` : Folder containing data with at least one cheater present.
38
+ - `README.md`: This documentation file
39
+
40
+ ### Data files
41
+
42
+ Each data point(counter strike match) is captured in 2 files:
43
+
44
+ | Filetype | Sorting |Data Description |
45
+ |----------|---------| -------------|
46
+ | `.csv` | Ticks | The data is contained as a series of events, also known as ticks. Each tick has 10 rows containing data on the 10 players. |
47
+ | `.json` | Events | The data is stored by the event type. Each occurrence of an event consequently stores the tick, in which the event occurred. Note, that this file also contains general game information, such as the cheater labeling, map, and server settings. |
48
+
49
+ ## Loading dataset
50
+
51
+ The following piece of code loads a single data point in the dataset. The resulting types are the same as if they were a demo parsed by demoparser2.
52
+
53
+ ```python
54
+ import pandas as pd
55
+ import json
56
+ import os
57
+
58
+ filepath = "Data/no_cheater_present/0"
59
+
60
+ # Loading csv tick data as a pd.DataFrame
61
+ match_0_ticks = pd.read_csv(filepath_or_buffer=filepath+".csv.gz", compression="gzip")
62
+
63
+ # Loading json event data a list of tuples (str, pd.Dataframe)
64
+ def json_2_eventlist(filepath:str) -&gt; list:
65
+ with open(filepath, "r") as f:
66
+ json_data = json.load(f)
67
+
68
+ data = []
69
+
70
+ for key, value in json_data.items():
71
+ if isinstance(value, list):
72
+ df = pd.DataFrame(value)
73
+ data.append((key, df))
74
+
75
+ return data
76
+
77
+ match_0_events = json_2_eventlist(filepath=filepath+".json")
78
+ ```
79
+
80
+
81
+ ## Data source
82
+
83
+ The data is scraped from the website [csstats.gg](https://csstats.gg/) using the `ALL MATCHES` page as an entry point for scraping. This resulted in NUMBER `.dem` files.
84
+
85
+ ## Data processing
86
+
87
+ Due to `.dem` files containing sensitive information regarding the users. the data required anonymisation before publishing. This meant extracting the data from the `.dem` files and censoring sensitive data.
88
+
89
+ In order to extract the data from these files the python library demoparser2 was used[[github](https://github.com/LaihoE/demoparser)][[pypi](https://pypi.org/project/demoparser2/)]. The demoparser parses events and ticks as two separate data types:
90
+
91
+ - events : `list[tuple[str, pd.DataFrame]]` with the string describing the event type.
92
+ - tick : `pd.DataFrame`
93
+
94
+ Loading of the data as recommended in the section "[Loading dataset](#loading-dataset)" returns these types as well.
95
+
96
+ ### Data anonymisation
97
+
98
+ The following is the complete list of **data removed** from the dataset:
99
+
100
+ - `crosshair_code`
101
+ - `player_name`
102
+ - `player_steamid`
103
+ - `music_kit_id`
104
+ - `leader_honors`
105
+ - `teacher_honors`
106
+ - `friendly_honors`
107
+ - `agent_skin`
108
+ - `user_id`
109
+ - `active_weapon_skin`
110
+ - `custom_name`
111
+ - `orig_owner_xuid_low`
112
+ - `orig_owner_xuid_high`
113
+ - `fall_back_paint_kit`
114
+ - `fall_back_seed`
115
+ - `fall_back_wear`
116
+ - `fall_back_stat_track`
117
+ - `weapon_float`
118
+ - `weapon_paint_seed`
119
+ - `weapon_stickers`
120
+ - `xuid`
121
+ - `networkid`
122
+ - `PlayerID`
123
+ - `address`
124
+
125
+ The following data is the complete list of **altered data** in the dataset:
126
+
127
+ - `name`
128
+ - `user_name`
129
+ - `names`
130
+ - `steamid`
131
+ - `user_steamid`
132
+ - `attacker_name`
133
+ - `attacker_steamid`
134
+ - `victim_name`
135
+ - `victim_steamid`
136
+ - `active_weapon_original_owner`
137
+ - `assister_name`
138
+ - `assister_steamid`
139
+ - `approximate_spotted_by`
140
+
141
+ Data added from scraping process:
142
+ - `map`
143
+ - `avg_rank`
144
+ - `server`
145
+ - `match_making_type`
146
+ - `cheater`
147
+
148
+ ## Usage notes
149
+
150
+ - The dataset is formated in UTF-8 encoding.
151
+ - Researchers should **cite this dataset appropriately** in publications
152
+
153
+ ## Applications
154
+
155
+ CS2CD is well suited for the following tasks
156
+
157
+ - Cheat detection
158
+ - Player performance prediction
159
+ - Match outcome prediction
160
+ - Player behaviour clustering
161
+ - Weapon effectiveness analysis
162
+ - Strategy analysis
163
+
164
+ ## Acknowledgements
165
+
166
+ A big heartfelt thanks to [Paolo Burelli](http://paoloburelli.com/) for supervising the project.