Coder Social home page Coder Social logo

saitejavishalj / hotspot-analysis-of-geospatial-data Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 4.46 MB

Built a Large Scale Distributed Data Processing system for Streaming Analytics using Hadoop Ecosystem (Apache Spark and HDFS), in Cloud for real-time spatial analytics.

Scala 100.00%
hdfs sparksql apache-spark apache-hadoop hadoop-ecosystem data-analysis distributed-systems large-scale streaming-analytics

hotspot-analysis-of-geospatial-data's Introduction

Large Scale Geo-Spatial Data Analysis using Apache Spark and SparkSQL

Distributed and Parallel Database Systems

Project description:

The project was aimed to setup a spark cluster with HDFS and run SparkSQL queries (geo-spatial) on the it.

Input: A collection of New York City Yellow Cab taxi trip records spanning January 2009 to June 2015. The source data may be clipped to an envelope encompassing the five New York City boroughs in order to remove some of the noisy error data (e.g., latitude 40.5N โ€“ 40.9N, longitude 73.7W โ€“ 74.25W).

  • Native spark cluster was used as cluster manager.
  • Hadoop Distributed File System (HDFS) was used as distributed storage system.
  • The setup was done using Amazon EC2 virtual machines as nodes.
  • Spatial queries such as range query, range join query, distance query, distance join query, hot zone analysis and hot cell analysis were executed.
    • Spatial queries were executed by implementing user defined functions such as ST_contains and ST_within in Scala.
    • ST_contains takes a point and a rectangle and returns a boolean indicating whether the point is inside the rectangle.
    • ST_within takes two points and a distance and returns a boolean indication whether the distance between the points is not more than the distance provided.

Output: A list of the fifty most significant hot spot cells in time and space as identified using the Getis-Ord statistic.

Technology used: Apache Spark, Hadoop Distributed File System (HDFS), Scala, sbt build tool, Amazon EC2

Background: The use of spatial statistics to discover statistically significant clusters or outliers in geographic data is a well-known analytic technique used by GIS experts. When making decisions, spatial statistics are essential. For example, if we are 95% certain that the levels observed in this location surpass a regulation standard, we must respond accordingly. The Getis-Ord statistic is a widely used statistic for identifying statistically significant clusters (also referred to as Hot Spot Analysis). It provides a z-score and p-values, allowing users to see where characteristics with high or low values are spatially grouped.

It's worth noting that this statistic can be utilized in both spatial and spatio-temporal domains; however, we'll be focusing on the spatio-temporal Getis-Ord statistic in this competition. We currently live in a world where observational data is being collected at an ever-increasing rate, further complicating the difficulty of finding hot areas. Many firms and organizations, for example, track their mobile assets on a regular basis. This data is frequently quite important to businesses, both in terms of real-time analytics (e.g., geofencing) and batch analysis after the fact.

Distributed processing approaches are necessary to manage these massive quantities of observational data (e.g., in the billions). Interest in the Apache Spark framework has exploded across government, industry, and academia over the last few years. Spark is a powerful software platform for constructing scalable distributed algorithms utilizing functional programming techniques and languages. It can be easily implemented on commodity hardware clusters.

hotspot-analysis-of-geospatial-data's People

Contributors

saitejavishalj avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

gitvicky97

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.