Code Monkey home page Code Monkey logo

adtracking-fraud-detection's Introduction

TalkingData AdTracking Fraud detection challenge

Source: https://www.kaggle.com/c/talkingdata-adtracking-fraud-detection

Description from kaggle

Fraud risk is everywhere, but for companies that advertise online, click fraud can happen at an overwhelming volume, resulting in misleading click data and wasted money. Ad channels can drive up costs by simply clicking on the ad at a large scale. With over 1 billion smart mobile devices in active use every month, China is the largest mobile market in the world and therefore suffers from huge volumes of fradulent traffic.

TalkingData, China’s largest independent big data service platform, covers over 70% of active mobile devices nationwide. They handle 3 billion clicks per day, of which 90% are potentially fraudulent. Their current approach to prevent click fraud for app developers is to measure the journey of a user’s click across their portfolio, and flag IP addresses who produce lots of clicks, but never end up installing apps. With this information, they've built an IP blacklist and device blacklist.

While successful, they want to always be one step ahead of fraudsters and have turned to the Kaggle community for help in further developing their solution. In their 2nd competition with Kaggle, you’re challenged to build an algorithm that predicts whether a user will download an app after clicking a mobile app ad. To support your modeling, they have provided a generous dataset covering approximately 200 million clicks over 4 days!

Evaluation from kaggle

Submissions are evaluated on area under the ROC curve between the predicted probability and the observed target.

Submission File For each click_id in the test set, you must predict a probability for the target is_attributed variable. The file should contain a header and have the following format:

click_id,is_attributed 1,0.003 2,0.001 3,0.000 etc.

Data fields

Each row of the training data contains a click record, with the following features.

  • ip: ip address of click.
  • app: app id for marketing.
  • device: device type id of user mobile phone (e.g., iphone 6 plus, iphone 7, huawei mate 7, etc.)
  • os: os version id of user mobile phone
  • channel: channel id of mobile ad publisher
  • click_time: timestamp of click (UTC)
  • attributed_time: if user download the app for after clicking an ad, this is the time of the app download
  • is_attributed: the target that is to be predicted, indicating the app was downloaded Note that ip, app, device, os, and channel are encoded.

The test data is similar, with the following differences:

  • click_id: reference for making predictions
  • is_attributed: not included

File descriptions

  • train.csv - the training set
  • train_sample.csv - 100,000 randomly-selected rows of training data, to inspect data before downloading full set
  • test.csv - the test set
  • sampleSubmission.csv - a sample submission file in the correct format

Possible features

  • Delta time between click_time and attribute_time
  • Time features of the attribute_time and/or click_time
  • Can we make extra features from the ip ?

Exploration

Source:

  • Findings

Data cleaning -> (Pyspark vs Pandas)

Feature extraction

Source:

  • Genetic algorithm (evolutionary algorithm for feature extraction)?
  • Feature importance?

Used models

  • Simple decision tree
  • Simple random forest

Results

Evaluation

Model Performance
to-do to-do

adtracking-fraud-detection's People

Contributors

siebertlooije 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.