The GamePlayStyle Classifier is a Python program designed to predict whether the user is playing a video game based on their mouse and keyboard actions. By analyzing the patterns of mouse movements and keyboard inputs, the program employs machine learning techniques to distinguish between different play styles.
- Clone the repository to your local machine: git clone https://github.com/pippodima/DCML_Project
- navigate to the project directory
- install the required dependencies using pip (see
requirements.txtfor full list)
To use the GamePlayStyle Classifier, follow these steps:
- Train the model with your own data or use the pre-trained model provided.
- Run the program and provide input data (mouse and keyboard actions) for prediction.
- Receive predictions indicating whether the user is playing a video game.
To fit the model to your own play style first you need to monitor (at least) a couple of games.
- Go to
main.pyand setmonitor_onlyvariable toTrue. Now if you run main, a file will be created in your directory (monitored_values.csv) where there are all the information needed - after you have monitored a couple of games of your play style and other games of another style (another person) you can now create the dataset. go to ML/prepareDataset and put the names of the games file(.csv) and run the script
- go to ML/supervisedModelComparison change the paths to save the models that are trained on your dataset
- go to main again and change the
monitor_onlyvariable toFalseand adjust the paths before running - now it should print in your console
[0]or[1]if the player is normal or anomaly. If it reads anomaly for more than 2.5 seconds it will play a beep sound until it become again a[0]