Finalised upload of files
Browse files- no_cheater_present/README.md +0 -149
no_cheater_present/README.md
DELETED
@@ -1,149 +0,0 @@
|
|
1 |
-
# Counter Strike 2 Cheat Detection Dataset
|
2 |
-
|
3 |
-
## Overview
|
4 |
-
|
5 |
-
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.
|
6 |
-
|
7 |
-
## Dataset structure
|
8 |
-
|
9 |
-
The dataset is partitioned into data with at least one cheater present, and data with no cheaters present.
|
10 |
-
|
11 |
-
> ⚠️
|
12 |
-
> 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**.
|
13 |
-
> 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.
|
14 |
-
> 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).
|
15 |
-
> Hence, it was decided, that resources were best spent with labeling data containing at least one VAC-banned player.
|
16 |
-
|
17 |
-
### Root folder
|
18 |
-
|
19 |
-
- `no_cheater_present` : Folder containing data where no cheaters are present.
|
20 |
-
- `with_cheater_present` : Folder containing data with at least one cheater present.
|
21 |
-
- `README.md`: This documentation file
|
22 |
-
|
23 |
-
### Data files
|
24 |
-
|
25 |
-
Each data point(counter strike match) is captured in 2 files:
|
26 |
-
|
27 |
-
| Filetype | Sorting |Data Description |
|
28 |
-
|----------|---------| -------------|
|
29 |
-
| `.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. |
|
30 |
-
| `.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. |
|
31 |
-
|
32 |
-
## Loading dataset
|
33 |
-
|
34 |
-
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.
|
35 |
-
|
36 |
-
```python
|
37 |
-
import pandas as pd
|
38 |
-
import json
|
39 |
-
import os
|
40 |
-
|
41 |
-
filepath = "Data/no_cheater_present/0"
|
42 |
-
|
43 |
-
# Loading csv tick data as a pd.DataFrame
|
44 |
-
match_0_ticks = pd.read_csv(filepath_or_buffer=filepath+".csv.gz", compression="gzip")
|
45 |
-
|
46 |
-
# Loading json event data a list of tuples (str, pd.Dataframe)
|
47 |
-
def json_2_eventlist(filepath:str) -> list:
|
48 |
-
with open(filepath, "r") as f:
|
49 |
-
json_data = json.load(f)
|
50 |
-
|
51 |
-
data = []
|
52 |
-
|
53 |
-
for key, value in json_data.items():
|
54 |
-
if isinstance(value, list):
|
55 |
-
df = pd.DataFrame(value)
|
56 |
-
data.append((key, df))
|
57 |
-
|
58 |
-
return data
|
59 |
-
|
60 |
-
match_0_events = json_2_eventlist(filepath=filepath+".json")
|
61 |
-
```
|
62 |
-
|
63 |
-
|
64 |
-
## Data source
|
65 |
-
|
66 |
-
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.
|
67 |
-
|
68 |
-
## Data processing
|
69 |
-
|
70 |
-
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.
|
71 |
-
|
72 |
-
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:
|
73 |
-
|
74 |
-
- events : `list[tuple[str, pd.DataFrame]]` with the string describing the event type.
|
75 |
-
- tick : `pd.DataFrame`
|
76 |
-
|
77 |
-
Loading of the data as recommended in the section "[Loading dataset](#loading-dataset)" returns these types as well.
|
78 |
-
|
79 |
-
### Data anonymisation
|
80 |
-
|
81 |
-
The following is the complete list of **data removed** from the dataset:
|
82 |
-
|
83 |
-
- `crosshair_code`
|
84 |
-
- `player_name`
|
85 |
-
- `player_steamid`
|
86 |
-
- `music_kit_id`
|
87 |
-
- `leader_honors`
|
88 |
-
- `teacher_honors`
|
89 |
-
- `friendly_honors`
|
90 |
-
- `agent_skin`
|
91 |
-
- `user_id`
|
92 |
-
- `active_weapon_skin`
|
93 |
-
- `custom_name`
|
94 |
-
- `orig_owner_xuid_low`
|
95 |
-
- `orig_owner_xuid_high`
|
96 |
-
- `fall_back_paint_kit`
|
97 |
-
- `fall_back_seed`
|
98 |
-
- `fall_back_wear`
|
99 |
-
- `fall_back_stat_track`
|
100 |
-
- `weapon_float`
|
101 |
-
- `weapon_paint_seed`
|
102 |
-
- `weapon_stickers`
|
103 |
-
- `xuid`
|
104 |
-
- `networkid`
|
105 |
-
- `PlayerID`
|
106 |
-
- `address`
|
107 |
-
|
108 |
-
The following data is the complete list of **altered data** in the dataset:
|
109 |
-
|
110 |
-
- `name`
|
111 |
-
- `user_name`
|
112 |
-
- `names`
|
113 |
-
- `steamid`
|
114 |
-
- `user_steamid`
|
115 |
-
- `attacker_name`
|
116 |
-
- `attacker_steamid`
|
117 |
-
- `victim_name`
|
118 |
-
- `victim_steamid`
|
119 |
-
- `active_weapon_original_owner`
|
120 |
-
- `assister_name`
|
121 |
-
- `assister_steamid`
|
122 |
-
- `approximate_spotted_by`
|
123 |
-
|
124 |
-
Data added from scraping process:
|
125 |
-
- `map`
|
126 |
-
- `avg_rank`
|
127 |
-
- `server`
|
128 |
-
- `match_making_type`
|
129 |
-
- `cheater`
|
130 |
-
|
131 |
-
## Usage notes
|
132 |
-
|
133 |
-
- The dataset is formated in UTF-8 encoding.
|
134 |
-
- Researchers should **cite this dataset appropriately** in publications
|
135 |
-
|
136 |
-
## Applications
|
137 |
-
|
138 |
-
CS2CD is well suited for the following tasks
|
139 |
-
|
140 |
-
- Cheat detection
|
141 |
-
- Player performance prediction
|
142 |
-
- Match outcome prediction
|
143 |
-
- Player behaviour clustering
|
144 |
-
- Weapon effectiveness analysis
|
145 |
-
- Strategy analysis
|
146 |
-
|
147 |
-
## Acknowledgements
|
148 |
-
|
149 |
-
A big heartfelt thanks to [Paolo Burelli](http://paoloburelli.com/) for supervising the project.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|