Commit ·
f30664e
verified ·
0
Parent(s):
Duplicate from CS2CD/CS2CD.Counter-Strike_2_Cheat_Detection
Browse filesCo-authored-by: Mille Mei Zhen Loo <Pinkvinus@users.noreply.huggingface.co>
This view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributesAdded+59
- README.mdAdded+171
- no_cheater_present/0.jsonAdded
- no_cheater_present/0.parquetAdded+3
- no_cheater_present/1.jsonAdded
- no_cheater_present/1.parquetAdded+3
- no_cheater_present/10.jsonAdded
- no_cheater_present/10.parquetAdded+3
- no_cheater_present/100.jsonAdded
- no_cheater_present/100.parquetAdded+3
- no_cheater_present/101.jsonAdded
- no_cheater_present/101.parquetAdded+3
- no_cheater_present/102.jsonAdded
- no_cheater_present/102.parquetAdded+3
- no_cheater_present/103.jsonAdded
- no_cheater_present/103.parquetAdded+3
- no_cheater_present/104.jsonAdded
- no_cheater_present/104.parquetAdded+3
- no_cheater_present/105.jsonAdded
- no_cheater_present/105.parquetAdded+3
- no_cheater_present/106.jsonAdded
- no_cheater_present/106.parquetAdded+3
- no_cheater_present/107.jsonAdded
- no_cheater_present/107.parquetAdded+3
- no_cheater_present/108.jsonAdded
- no_cheater_present/108.parquetAdded+3
- no_cheater_present/109.jsonAdded
- no_cheater_present/109.parquetAdded+3
- no_cheater_present/11.jsonAdded
- no_cheater_present/11.parquetAdded+3
- no_cheater_present/110.jsonAdded
- no_cheater_present/110.parquetAdded+3
- no_cheater_present/111.jsonAdded
- no_cheater_present/111.parquetAdded+3
- no_cheater_present/112.jsonAdded
- no_cheater_present/112.parquetAdded+3
- no_cheater_present/113.jsonAdded
- no_cheater_present/113.parquetAdded+3
- no_cheater_present/114.jsonAdded
- no_cheater_present/114.parquetAdded+3
- no_cheater_present/115.jsonAdded
- no_cheater_present/115.parquetAdded+3
- no_cheater_present/116.jsonAdded
- no_cheater_present/116.parquetAdded+3
- no_cheater_present/117.jsonAdded
- no_cheater_present/117.parquetAdded+3
- no_cheater_present/118.jsonAdded
- no_cheater_present/118.parquetAdded+3
- no_cheater_present/119.jsonAdded
- no_cheater_present/119.parquetAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859*.7z filter=lfs diff=lfs merge=lfs -text*.arrow filter=lfs diff=lfs merge=lfs -text*.bin filter=lfs diff=lfs merge=lfs -text*.bz2 filter=lfs diff=lfs merge=lfs -text*.ckpt filter=lfs diff=lfs merge=lfs -text*.ftz filter=lfs diff=lfs merge=lfs -text*.gz filter=lfs diff=lfs merge=lfs -text*.h5 filter=lfs diff=lfs merge=lfs -text*.joblib filter=lfs diff=lfs merge=lfs -text*.lfs.* filter=lfs diff=lfs merge=lfs -text*.lz4 filter=lfs diff=lfs merge=lfs -text*.mds filter=lfs diff=lfs merge=lfs -text*.mlmodel filter=lfs diff=lfs merge=lfs -text*.model filter=lfs diff=lfs merge=lfs -text*.msgpack filter=lfs diff=lfs merge=lfs -text*.npy filter=lfs diff=lfs merge=lfs -text*.npz filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.parquet filter=lfs diff=lfs merge=lfs -text*.pb filter=lfs diff=lfs merge=lfs -text*.pickle filter=lfs diff=lfs merge=lfs -text*.pkl filter=lfs diff=lfs merge=lfs -text*.pt filter=lfs diff=lfs merge=lfs -text*.pth filter=lfs diff=lfs merge=lfs -text*.rar filter=lfs diff=lfs merge=lfs -text*.safetensors filter=lfs diff=lfs merge=lfs -textsaved_model/**/* filter=lfs diff=lfs merge=lfs -text*.tar.* filter=lfs diff=lfs merge=lfs -text*.tar filter=lfs diff=lfs merge=lfs -text*.tflite filter=lfs diff=lfs merge=lfs -text*.tgz filter=lfs diff=lfs merge=lfs -text*.wasm filter=lfs diff=lfs merge=lfs -text*.xz filter=lfs diff=lfs merge=lfs -text*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text# Audio files - uncompressed*.pcm filter=lfs diff=lfs merge=lfs -text*.sam filter=lfs diff=lfs merge=lfs -text*.raw filter=lfs diff=lfs merge=lfs -text# Audio files - compressed*.aac filter=lfs diff=lfs merge=lfs -text*.flac filter=lfs diff=lfs merge=lfs -text*.mp3 filter=lfs diff=lfs merge=lfs -text*.ogg filter=lfs diff=lfs merge=lfs -text*.wav filter=lfs diff=lfs merge=lfs -text# Image files - uncompressed*.bmp filter=lfs diff=lfs merge=lfs -text*.gif filter=lfs diff=lfs merge=lfs -text*.png filter=lfs diff=lfs merge=lfs -text*.tiff filter=lfs diff=lfs merge=lfs -text# Image files - compressed*.jpg filter=lfs diff=lfs merge=lfs -text*.jpeg filter=lfs diff=lfs merge=lfs -text*.webp filter=lfs diff=lfs merge=lfs -text# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171---license: cc-by-4.0language: - entags: - Game - Counter-Strike - CS2 - Counter-Strike 2 - Video Game - Cheat Detection - Gameplaypretty_name: Counter-Strike 2 Cheat Detectionsize_categories: - n<1K---
# Counter Strike 2 Cheat Detection Dataset
## Overview
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 478 CS2 matches with no cheater present, and 317 matches CS2 matches with at least one cheater present.
## Dataset structure
The dataset is partitioned into data with at least one cheater present, and data with no cheaters present.
<div style="border:1px solid #ccc; padding: 10px; border-radius: 5px; background-color: #fff3cd; color: #000;"> <p><strong style="color: #000">⚠️ Warning: </strong>Data containing no cheaters has not been verified</p> <p>Only files, containing at least one VAC(Valve Anti-cheat)-banned player, have been manually labelled and verified. Hence, <strong style="color: #000">cheaters may be present in the data without cheaters</strong>.</p> <p>When examining a subset containing 50 data points (demos) with no VAC-banned players, it was discovered that in 97.2% of players in these matches were not presenting any cheater-like behaviour. When examining a subset of 50 data points (demos) in the set of matches with with at least one VAC-banned player, it was discovered that the label precission of the "not cheater" label was 55.6%. This is possibly due to CS2 using <a href="https://help.steampowered.com/en/faqs/view/00EF-D679-C76A-C185" target="_blank" style="color: #007bff; text-decoration: underline;">trust factor match making</a>.</p>
<p>Hence, it was decided, that resources were best spent with labeling data containing at least one VAC-banned player.</p>
<p>For more information regarding the data collection see <a href="https://github.com/Pinkvinus/CS2-demo-scraper/blob/main/Research_project___Counter_Strike_2_dataset_with_labels.pdf" target="_blank" style="color: #007bff; text-decoration: underline;">Counter-Strike 2 Game data collection with cheat labelling</a> by Mille Mei Zhen Loo & Gert Lužkov.</p></div>
### Root folder
- `no_cheater_present` : Folder containing data where no cheaters are present.- `with_cheater_present` : Folder containing data with at least one cheater present.- `README.md`: This documentation file
### Data files
Each data point(counter strike match) is captured in 2 files:
| Filetype | Sorting |Data Description ||----------|---------| -------------|| `.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. || `.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. |
## Loading dataset
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.
```pythonimport pandas as pdimport json
filepath = "Data/no_cheater_present/0"
# Loading csv tick data as a pd.DataFramematch_0_ticks = pd.read_csv(filepath_or_buffer=filepath+".csv.gz", compression="gzip")
# Loading json event data a list of tuples (str, pd.Dataframe)def json_2_eventlist(filepath:str) -> list[tuple[str, pd.DataFrame]]: with open(filepath, "r") as f: json_data = json.load(f)
data = []
for key, value in json_data.items(): if isinstance(value, list): df = pd.DataFrame(value) data.append((key, df))
return data
match_0_events = json_2_eventlist(filepath=filepath+".json")```
## Data source
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.
## Data processing
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.
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:
- events : `list[tuple[str, pd.DataFrame]]` with the string describing the event type.- tick : `pd.DataFrame`
Loading of the data as recommended in the section "[Loading dataset](#loading-dataset)" returns these types as well.
### Data anonymisation
The following is the complete list of **data removed** from the dataset:
- `crosshair_code`- `player_name`- `player_steamid`- `music_kit_id`- `leader_honors`- `teacher_honors`- `friendly_honors`- `agent_skin`- `user_id`- `active_weapon_skin`- `custom_name`- `orig_owner_xuid_low`- `orig_owner_xuid_high`- `fall_back_paint_kit`- `fall_back_seed`- `fall_back_wear`- `fall_back_stat_track`- `weapon_float`- `weapon_paint_seed`- `weapon_stickers`- `xuid`- `networkid`- `PlayerID`- `address`- `name`- `user_name`- `victim_name`- `attacker_name`- `assister_name`- `chat_message`
The following data is the complete list of **altered data** in the dataset:
- `steamid`- `user_steamid`- `attacker_steamid`- `victim_steamid`- `active_weapon_original_owner`- `assister_steamid`- `approximate_spotted_by`
Data added from scraping process:- `map`- `avg_rank`- `server`- `match_making_type`- `cheater`
## Usage notes
- The dataset is formated in UTF-8 encoding.- Researchers should **cite this dataset appropriately** in publications- In the case that all players from a single team quits the match, a single bot is spawned to fill the empty team. This may result in kills where no steamid is present. This is due to the bot not having a steamid.
## Applications
CS2CD is well suited for the following tasks
- Cheat detection- Player performance prediction- Match outcome prediction- Player behaviour clustering- Weapon effectiveness analysis- Strategy analysis
## Acknowledgements
A big heartfelt thanks to [Paolo Burelli](http://paoloburelli.com/) for supervising the project.123version https://git-lfs.github.com/spec/v1oid sha256:4b7886214b3cd9b6999a90f5574c80a77ad773fd3a7b9c72e4a9d2a4483b5341size 7132783123version https://git-lfs.github.com/spec/v1oid sha256:55524f58dec9d7896b3b56ba25e92076dfaae3dd5a563c5946c238c0884f99e6size 80324380123version https://git-lfs.github.com/spec/v1oid sha256:a2552a1ae45b7bf44ed7e49afbd454c190d2e75e0c9f1907ef612d35e768fc67size 91544959123version https://git-lfs.github.com/spec/v1oid sha256:3c1e300ed3b97e9e95b74429595f7d2e3be8a9dba5dbf23bbd083e645ff35190size 25932667123version https://git-lfs.github.com/spec/v1oid sha256:f897a1adc365516a82e224790d17c299665206a895057d53897c83fa57c426cdsize 30162965123version https://git-lfs.github.com/spec/v1oid sha256:336a752ec2a88daa1a01e451af2b632384eec36e2e38d6ec0d62262000c5b938size 53653385123version https://git-lfs.github.com/spec/v1oid sha256:509b5b78484aaaf3ae9a4f1294b366449b7c07704b22bf61ec580b8cb998167dsize 34476428123version https://git-lfs.github.com/spec/v1oid sha256:919764e7b8ab8271391438d63db8e1f0888cb897d2be8191cd4bd7ebc89d4141size 41721196123version https://git-lfs.github.com/spec/v1oid sha256:1892cb46eb5a1f350b138aee34ea73616431a9895ad13a9d3ec21b1f9a4fdfa0size 23010494123version https://git-lfs.github.com/spec/v1oid sha256:7d3dfd8beaa30956004dbe4c280043fe39304c16196e99fc1aaa5f812ac6b8e6size 122814887123version https://git-lfs.github.com/spec/v1oid sha256:f4768962e2828bff5535d51b9e97f87f0230cb4e23bc2f29a5540125dacc0681size 68971117123version https://git-lfs.github.com/spec/v1oid sha256:760de8f74faed460154da20cd7914dc7b816b77193e15d2dacfa159dbe160a1esize 59528331123version https://git-lfs.github.com/spec/v1oid sha256:19cc45b6f8d38b39b6924a8cdcb7fa491d9a6eed7b0e1d74ca3f32069f772b20size 61604425123version https://git-lfs.github.com/spec/v1oid sha256:2f2ecd65b2be203e2be6a993e4066819be16cea5d121e0dd64677c82af024685size 97087085123version https://git-lfs.github.com/spec/v1oid sha256:fb33328a6554c21c0288712565f2c68655926e3e5ad637424e17a8a383078fc6size 67397828123version https://git-lfs.github.com/spec/v1oid sha256:e715d6fe8ba8dfcdc42fa6aa5cbbeafdf053aa2ef71dfc0001cf8401117b87e3size 113054429123version https://git-lfs.github.com/spec/v1oid sha256:e61b5173714ed8aae1f9b65fe966f3ab420845826e6d07618e6d5c84eb62b48dsize 64762140123version https://git-lfs.github.com/spec/v1oid sha256:2e80123abcc5ec74439521ddb684b57a68e65ec696fc2455963bcec78b454414size 109331179123version https://git-lfs.github.com/spec/v1oid sha256:22bd744f73433ab6a87240d9deda1d3c5446a45ee978163f14c692e1c8cea7ddsize 106628654123version https://git-lfs.github.com/spec/v1oid sha256:69b918568f629c555215afb42f2b71a269645612ad1e721cb44335f5d91f1cf5size 79315127123version https://git-lfs.github.com/spec/v1oid sha256:f6e402e7d49c57ec7467956c6817d6a6dc43b919f96b26d13c437503f6490ee6size 98990744123version https://git-lfs.github.com/spec/v1oid sha256:d4727a508bf50186f2619da88b4c92cdaf09e9e437def53f0c2bf6c5afec0973size 116963355123version https://git-lfs.github.com/spec/v1oid sha256:75b8e722dad0643851d06e70fdf18585437af5f3d3000802a22a5342e9a6b183size 57899055123version https://git-lfs.github.com/spec/v1oid sha256:a1bc8560343bfb2687158941c4e0ac809912bb955b65dfe552764a6a670c3dfcsize 92127587.gitattributesAdded+59
README.mdAdded+171
no_cheater_present/0.jsonAdded
no_cheater_present/0.parquetAdded+3
no_cheater_present/1.jsonAdded
no_cheater_present/1.parquetAdded+3
no_cheater_present/10.jsonAdded
no_cheater_present/10.parquetAdded+3
no_cheater_present/100.jsonAdded
no_cheater_present/100.parquetAdded+3
no_cheater_present/101.jsonAdded
no_cheater_present/101.parquetAdded+3
no_cheater_present/102.jsonAdded
no_cheater_present/102.parquetAdded+3
no_cheater_present/103.jsonAdded
no_cheater_present/103.parquetAdded+3
no_cheater_present/104.jsonAdded
no_cheater_present/104.parquetAdded+3
no_cheater_present/105.jsonAdded
no_cheater_present/105.parquetAdded+3
no_cheater_present/106.jsonAdded
no_cheater_present/106.parquetAdded+3
no_cheater_present/107.jsonAdded
no_cheater_present/107.parquetAdded+3
no_cheater_present/108.jsonAdded
no_cheater_present/108.parquetAdded+3
no_cheater_present/109.jsonAdded
no_cheater_present/109.parquetAdded+3
no_cheater_present/11.jsonAdded
no_cheater_present/11.parquetAdded+3
no_cheater_present/110.jsonAdded
no_cheater_present/110.parquetAdded+3
no_cheater_present/111.jsonAdded
no_cheater_present/111.parquetAdded+3
no_cheater_present/112.jsonAdded
no_cheater_present/112.parquetAdded+3
no_cheater_present/113.jsonAdded
no_cheater_present/113.parquetAdded+3
no_cheater_present/114.jsonAdded
no_cheater_present/114.parquetAdded+3
no_cheater_present/115.jsonAdded
no_cheater_present/115.parquetAdded+3
no_cheater_present/116.jsonAdded
no_cheater_present/116.parquetAdded+3
no_cheater_present/117.jsonAdded
no_cheater_present/117.parquetAdded+3
no_cheater_present/118.jsonAdded
no_cheater_present/118.parquetAdded+3
no_cheater_present/119.jsonAdded
no_cheater_present/119.parquetAdded+3