Giter VIP home page Giter VIP logo

6242project's Introduction

6242project

Crime Analysis and Visualization in Atlanta Based on Spatio-Temporal Kernel Density Estimation (STKDE)

Team 12: Jingjing Ye, Guangyu Min, Ziheng Xiao

DESCRIPTION

The project code contains two parts:

  1. Data analysis: including refined data, STKDE output data, prediction data, STKDE code
  2. Data Visualization: including front-end visualization result, and user interface

INSTALLATION

Install the following libraries:

-pandas -numpy -datetime

-scipy -math

-sklearn -torch

-matplotlib -seaborn

To view the visualization result, visit https://kratosst.github.io. For the data presented in the demo, visit the corresponding github page (https://github.com/KratosST/kratosst.github.io) for presented data.

EXECUTION

There are several files to process the data. These codes are designed for data merging, refining and scaling.

Crime Map Visualization Interaction:

1.The bottom slider defines the time range from Jan 1, 2020 to Dec 1, 2021. The data presented in the time range from Jan 1, 2021 to Dec 1, 2021 are prediction results. The first half analyzes on previous crime data and aggregates on the density. Draw the slider to select a single day and view the heatmap.

2.The dropdown bar defines the splitted hour range in a single day. Select one period and view its the heatmap data for a specific day chosen in step 1.

3.Move mouse on each neighborhood to view the previous crime analysis.

4.Click on the map to see the crime analysis with prediction on a specific region grid. The grid size is predefined and used in STKDE and prediction.

STKDE:

In file densitySpaceTime, there are 4 files

$ python main.py

main.py will implement stkde and save the density data then use draw class to draw a 4 dimension pic.

Predict:

In file MLP there are two files here density_to_pre.py, mlp_lib.py

$ python density_to_pre.py 

density_to_pre.py will read csv and use the mlp class in mlp_lib.py to do predict

6242project's People

Contributors

kratosst avatar qingqingye avatar jiesibk 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.