Code Monkey home page Code Monkey logo

user-mimicking-aimbot's Introduction

Shoot for the Stats, AIm for the Moon: developing a pixel AImbot

This repository contains the code for the project of the Statistical Learning course (1047208), Sapienza University. The group was composed by Francesco Redaelli and me.

Project Outline

The goal of our project is the development of an AI agent able to play an Aim Trainer game. In order to chase a target on a wall, the agent exploits visual information to properly move the mouse pointer live, in a human-mimicking fashion.

To collect the required data, we setup a Python script that, running in background during different play sessions, captured every 1/20th of a second an observation, made up of a screenshot taken at the beginning of the time interval together with the mouse movement on both the X and Y axes at the end of the interval.

The preprocessing was aimed at reducing the dimensionality of the input data and at removing unnecessary elements from the images, keeping only the crucial ones.

In order to deal with the bi-dimensionality of the response vector, a multi-output strategy was followed, consisting in fitting one regressor per target (i.e. X and Y movements). The model was scored according to the arithmetic average of the individual regressor scores.

A qualitative model assessment, via a live application, highlighted poor performance of the agent when facing particular game patterns. In addition, the LIME IML algorithm (by Marco Tulio Ribeiro et al., 2016), applied to a set of images selected by using the so called โ€œSubmodular Pickโ€ method, seemed to suggest that the model struggled to discern target and corner pixels.

In order to address the highlighted issues, we increased the input images resolution and implemented a heavier preprocessing, aimed at differentiating targets and corners.

By applying domain specific knowledge to modify the data preprocessing pipeline, we obtained better quantitative and qualitative model performance, in terms of a lower Random Forest RMSE and a much smoother playstyle respectively. Also, the new LIME explanations seemed not to be affected by the aforementioned issues, suggesting an improvement in the model trustworthiness.

Brief demo of the final result

modelLIVE.mp4

user-mimicking-aimbot's People

Contributors

alessiobar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.