1 / 44

Towards the Geo-computation of Real-Time Geodemographics

Towards the Geo-computation of Real-Time Geodemographics. Muhammad Adnan. Introduction. BSc. in Information Technology from N.E.D. University, Karachi, Pakistan MSc. in Software Engineering from Queen Mary, University of London

jerzy
Télécharger la présentation

Towards the Geo-computation of Real-Time Geodemographics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Towards the Geo-computation of Real-Time Geodemographics Muhammad Adnan

  2. Introduction • BSc. in Information Technology from N.E.D. University, Karachi, Pakistan • MSc. in Software Engineering from Queen Mary, University of London • Working as Computing and Research Assistant at SPLINT, Dept. of Geography, UCL • Part-time PhD. Student • Research interest in optimizing the performance of clustering algorithms

  3. Recent Projects at UCL • Worldnames Profiler (www.publicprofiler.org/worldnames) • National Trust Names (www.nationaltrustnames.org.uk) • Onomap Website (www.onomap.org) • Google Maps Shortest Path (www.publicprofiler.org/travel) • Google Street View (www.publicprofiler.org/streetview) • A bit of work for London Profiler (www.londonprofiler.org)

  4. Worldnames Profiler • Online at www.publicprofiler.org/worldnames • Extraction of data from 22 telephone directories for different countries • Names Cleansing and standardising the format • Geo-coding individual households using different gazatteers • Oracle database with 1 billion names around 26 different countries • Geo-visualisation using Flash maps instead of slippy maps (Google Maps, ArcGIS server etc)

  5. Worldnames Profiler Concentration of surname “SINGLETON” in the World Concentration of surname “SINGLETON” in North America • Increased interest in creating visualisation techniques and dealing with text mining algorithms • PhD. Focus is on the creation of bespoke real time Geodemographic classifications

  6. What will I be talking about today ? • Geodemographic Classication • Introduction • What data goes in ? • Standardising the data • Clustering the data • Naming the clusters • Real time Geodemographics • Need for real time Geodemographics ? • What are real time Geodemographics ? • Computational Challenges • Clustering Algorithms • K-means • PAM (Partitioning Around Mediods) • CLARA (Clustering Large Applications) • GA (Genetic Algorithm) • Comparison of Clustering Algorithm • Creating bespoke Geodemographics…demo • Parallel Processing in real time Geodemographics

  7. What is a Geodemographic classification ? • “A segmentation system which groups similar neighbourhoods into categories, based on the characteristics of their residents”. (Vickers, 2006) • Generalised classification of areas based on characteristics of population.

  8. What data goes in? • Census data • Demographic attributes (Age, Ethnicity, Country of birth etc.) • Household composition (Family type, Family size etc.) • Housing characteristics (Tenure, Type & Size etc.) • Socio-economic attributes (Education, Car ownership etc.) • Employment attributes (Economic activity, Economic class etc.) • Lifestyle Surveys • Credit cards data • Commercial companies use a mix of all these data sources • Academic research has based on census data only

  9. Standardising the data • Z-Scores • Widely used variable normalisation technique • Can create outliers in the datasets • Range Standardisation • Standardise values between a range of 0-1 • Can erase interesting patterns in the data • Principal Component Analysis • Reduces the dimensions of a data set • Focuses on the part of dataset having maximum variance • Can erase interesting patterns in the data

  10. Clustering the data • K-means clustering algorithm is used to cluster data into homogeneous groups • Multiple runs of k-means due to its instability • 10,000 times (Singleton, 2008) • Different classification systems produce different number of groups • MOSAIC classifies data into12 lifestyle groups • ACORN classifies data into 17 lifestyle groups

  11. Naming the clusters • MOSAIC classifies data into 12 life style groups. • High Income Families • Suburban Semis • Blue Collar Owners • Low Rise Council • Council Flats • Victorian Low Status • Town Houses and Flats • Stylish Singles • Independent Elders • Mortgaged Families • Country Dwellers • Institutional Areas

  12. Need for real time Geodemographics • Current classifications are created using static data sources • Rate and scale of current population change is making large surveys (census) increasingly redundant • Significant hidden value in transactional data • Data is increasingly available in near real time e.g. ONS (Office of National Statistics) NESS API • Application specific (bespoke) classifications have demonstrated utility (Longley & Singleton, 2009)

  13. What are real time Geodemographics ? Specification Estimation Testing

  14. Computational challenges • Integration of large and possibly disparate databases • E.g. NHS data; Census data • Data normalisation and optimization for fast transactions • Minimizing computational time of clustering algorithms (Very Important)! • Common protocol • XML (SOAP) • Use of non traditional data sources. (Singleton, 2008) • E.g. Flickr; Facebook

  15. Important Challenge: Selection of clustering algorithm • K-Means • PAM (Partitioning Around Medoids) • CLARA (Clustering Large Applications) • GA (Genetic Algorithm)

  16. k-means • Attempts to find out cluster centroids by minimising within sum of squares distance. • K-means is unstable due to its initial seeds assignment. • Sensitive to outliers in the data set. • Creating a Geodemographic classification requires running algorithm multiple times. • 10,000 times (Singleton, 2008) • Computationally expensive in a real time environment.

  17. k-means variants • Hartigan’s k-means algorithm • Lloyd’s k-means algorithm • Forgy’s k-means algorithm • McQueen’s k-means algorithm

  18. k-means variants • Hartigan’s k-means algorithm • Lloyd’s k-means algorithm • Forgy’s k-means algorithm • McQueen’s k-means algorithm Clustering efficiency of k-means variants

  19. K-means(100 runs of k-means on OAC data set for k=4)

  20. An example of bad clustering result (K-means)

  21. An example of bad clustering result (K-means)

  22. An example of bad clustering result (K-means)

  23. Alternate Clustering Algorithms • PAM (Partitioning around medoids) • CLARA (Clustering Large Applications) • GA (Genetic Algorithm)

  24. Alternate Clustering Algorithms… • PAM (Partitioning around medoids) • It tries to minimize the sum of dissimilarities of the data points to their cluster centers. • Less sensitive to outliers than K-means. • Cannot handle larger data sets. • Produces better results than k-means for smaller data sets.

  25. Alternate Clustering Algorithms… • CLARA (Clustering Large Applications) • It draws multiple samples of the dataset, applies PAM to each sample and returns the best result. • Can handle large data sets as it operates on samples rather than on actual data set. • Sometimes it gives bad clustering results due to its procedure of sample selection.

  26. Alternate Clustering Algorithms… • GA (Genetic Algorithm) • It is inspired by models of biological evolution. It produces results through a breeding procedure. • Creates hierarchies of generations and then merge the hierarchies in homogeneous groups having similar characteristics. • Can be time consuming due to the creation of generation hierarchies.

  27. Comparing the computational efficiency of • K-means • Clara • GA By using three data normalisation techniques • Z-Scores • Range Standardisation • Principal Component Analysis

  28. Data normalisation techniques • Z-Scores • Widely used variable normalisation technique • Can create outliers in the datasets • Range Standardisation • Standardise values between a range of 0-1 • Can erase interesting patterns in the data • Principal Component Analysis • Reduces the dimensions of a data set • Focuses on the part of dataset having maximum variance • Can erase interesting patterns in the data

  29. PAM, and GA on the three geographic aggregations of a dataset covering London. Comparing computational efficiency (Z-scores) OA (Output Area) level results LSOA (Lower Super Output Area) level results Ward level results

  30. PAM, and GA on the three geographic aggregations of a dataset covering London. Comparing computational efficiency (Range Standardisation) OA (Output Area) level results LSOA (Lower Super Output Area) level results Ward level results

  31. PAM, and GA on the three geographic aggregations of a dataset covering London. Comparing computational efficiency (PCA) OA (Output Area) level results LSOA (Lower Super Output Area) level results Ward level results

  32. Algorithm Stability (w.r.t. Computational time) Running k-means on OA (Output Area) for 120 times on each iteration Running GA on OA (Output Area) for 120 times on each iteration Running CLARA on OA (Output Area) for 120 times on each iteration

  33. K-means and Principal Component Analysis • PCA can be used to facilitate K-means clustering by reducing dimensions. (Ding, C., He, X., 2004) K=4 (99% similar) K-means result for 26 “OAC Principal Components” K-means result for 41 “OAC variables”

  34. K-means and Principal Component Analysis • PCA can be used to facilitate K-means clustering by reducing dimensions. (Ding, C., He, X., 2004) K-means result for 26 “OAC Principal Components” K-means result for 41 “OAC variables”

  35. Intermediate results • Clara is plausible alternative to k-means in a real time Geodemographic classification system. • K-means might be combined with PCA for enhanced computation power. • In an online environment k-means is better for small data sets. • Exploration of non traditional data sources.

  36. Bespoke Geodemographics….demo • Web based clustering. • Users interact with Java Servlets to submit the requests. • Java Servlets interact with R, which in turn does the clustering. • Java Servlets interact with R by using JRI.

  37. Bespoke Geodemographics….demo

  38. Bespoke Geodemographics….demo

  39. Parallel Processing in Geodemographics • Distribution of computation on multiple computers or processors. • Effectively using the idle time of processors. • Reduces computational time.

  40. Parallel Processing in Geodemographics • Graphics cards can be used for parallel processing • Latest graphics cards are coming with multiple GPUs (Graphics Processing Units) • CUDA • Parallel computing architecture • Uses graphic processing units of NVIDIA graphics cards • Graphics cards can be used for running clustering algorithms in parallel • All the latest NVIDIA graphics cards are CUDA enabled • E.g. GeForce GTX 295, Tesla S1070, Quadro FX 5800 etc.

  41. Parallel Processing in Geodemographics • Running k-means on OA dataset for London (10 times for each value of k). • Result shows an increase in computation power by approx 30% while maintaining the clustering efficiency. • Can be approx 70% if we run k-means for 10,000 times.

  42. Future work • Investigation of clustering algorithms in more detail • Investigation of CUDA in more detail for running clustering algorithms in less time. • More testing for other clustering algorithms • Visualisation of the results produced. • Merging Google Maps with the existing visualisation techniques of WorldNames (www.publicprofiler.org/worldnames) and National Trust Names (www.nationaltrustnames.org.uk) websites. • Testing the usability for bespoke classifications.

  43. Future work

  44. Thank you for listening Any Questions?

More Related