Git Product home page Git Product logo

bhanukamanesha / brain-inspired-user-behavioural-traffic-monitoring-system Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 54.24 MB

Contains an implementation using NuPIC HTM model for Network Anomaly Detection. This uses the Hierarchical Temporal Memory Architecture to detect anomalies in networks.

Python 77.24% Shell 0.06% PowerShell 0.02% C 0.21% JavaScript 0.14% CSS 0.14% Dockerfile 0.01% Jupyter Notebook 22.19%
detect-anomalies nupic numenta user-behaviour network-analysis

brain-inspired-user-behavioural-traffic-monitoring-system's Introduction

Brain Inspired User Behavioural Traffic Monitoring System - MSC APICTA 2019

Numenta HTM model for Network Anomaly Detection

Production Server Setup Process

# Build the docker image
docker build -t apicta .

# Run the production server inside the docker container
# This will run the server on port 3000
docker run -p 3000:80 apicta

Accessing the API

Send a POST request this route to get the prediction

localhost:3000/data

Use this format for the api calls.

{"data": [
    {
      "timestamp": 1331901000.0,
      "total": 17312,
      "total_tcp": 16891,
      "total_http": 422,
      "total_udp": 173,
      "size": 2558408,
      "size_tcp": 2528168,
      "size_http": 76414,
      "size_udp": 12279
    }
  ]
 }

Do note that mutiple time stamps are also valid

{"data": [
    {
      "timestamp": 1331901000.0,
      "total": 17312,
      "total_tcp": 16891,
      "total_http": 422,
      "total_udp": 173,
      "size": 2558408,
      "size_tcp": 2528168,
      "size_http": 76414,
      "size_udp": 12279
    },
    {
      "timestamp": 1331901000.0,
      "total": 17312,
      "total_tcp": 16891,
      "total_http": 422,
      "total_udp": 173,
      "size": 2558408,
      "size_tcp": 2528168,
      "size_http": 76414,
      "size_udp": 12279
    },
    {
      "timestamp": 1331901000.0,
      "total": 17312,
      "total_tcp": 16891,
      "total_http": 422,
      "total_udp": 173,
      "size": 2558408,
      "size_tcp": 2528168,
      "size_http": 76414,
      "size_udp": 12279
    }
  ]
 }
``

brain-inspired-user-behavioural-traffic-monitoring-system's People

Contributors

bhanukamanesha avatar

Stargazers

 avatar

Watchers

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