SlideShare a Scribd company logo
1 of 17
Data Science II
Location History
Samer Aamar
Target
• Find location history data
• Implement machine learning mechanisms
• Do something interesting !
Location History
Where have you been
last Wednesday!?
If you cannot remember
Google does!
https://maps.google.com/locationhistory
My mobile
device
Extract Processing Clustering Classification Additional
Location History
Where will you be next Wednesday!?
If you don’t know
Let me help!
Extract Processing Clustering Classification Additional
Location History
• Download Location History from your
personal google account :
• https://maps.google.com/locationhistory
• Use json format
• Period: Oct 2013 – May 2016
• We have 104.5k points
Extract Processing Clustering Classification Additional
{
"timestampMs" : "1462956216662",
"latitudeE7" : 326807833,
"longitudeE7" : 352925527,
"accuracy" : 66,
"activitys" : [{
"timestampMs" : "1462954920968",
"activities" : [ {
"type" : "still",
"confidence" : 31
}, {
"type" : "inVehicle",
"confidence" : 27
}, {
"type" : "onBicycle",
"confidence" : 23
}, {
"type" : "unknown",
"confidence" : 12
}, {
"type" : "onFoot",
"confidence" : 8
}, {
"type" : "walking",
"confidence" : 8
} ]
}
Processor
• Load json file
• Filter only coordination with activity type = “still”
• Filter on last 30 days
• Get address from lon/lat
from geopy.geocoders import Nominatim
location = geolocator.reverse("%(latitude)s, %(longitude)s")
print location.address
• A heavy operation due to API invoke
• Output: table of locations per time stamp (with full address)
Extract Processing Clustering Classification Additional
Clustering
• Used KMeans++ algorithm
• The input is the array of <lat,lon>
• Focus on 30 days back
• Total points: 4928
• Used GoogleMap package in order to plot the results
Extract Processing Clustering Classification Additional
Clustering (k=30)
• KMean++
• K = 30
• 4928 points
• Black circles are
centers of
clusters
30 days
back
Extract Processing Clustering Classification Additional
Clustering (k=10)
• KMean++
• K = 10
• 4928 points
• Black circles are
centers of
clusters
30 days
back
Home
Wife
parents
NIMOY!
Traffic
jams!
Office
Extract Processing Clustering Classification Additional
Clustering (k=10)
• KMean++
• K = 10
• 45,843 points
• Black circles are
centers of
clusters
392 days
back
Israel / Jordan
Europe
China!!!!??
Extract Processing Clustering Classification Additional
An interesting finding!
timestampDt latitudeE7 longitudeE7 town state country address
07/12/2015
15:42 30.7794508 106.1095163永安镇 四川省 中国
X152, 永安镇, 高坪区 / Gaoping, 南充市 / Nanchong, 四
川省, 中国
15/11/2015
15:14 30.7794508 106.1095163永安镇 四川省 中国
X152, 永安镇, 高坪区 / Gaoping, 南充市 / Nanchong, 四
川省, 中国
Extract Processing Clustering Classification Additional
Classification
• Features are:
• Hour of the day (24h format)
• Day of the week (1=Sun … 7=Sat)
• Month of the year (1=Jan .. 12=Dec)
• The population was split into:
• Training data: the first 2/3 of the points
• Test data: the last 1/3 of the points
• Test scenarios:
• Every Tuesday I have university
• Every working day I am in Nazareth
• Every weekend I am at home most of my time
• Every night I come back home 
• For classification few algorithms were tested
Extract Processing Clustering Classification Additional
Accuracy per algorithm
0.67
0.67
0.69
0.55
0.67
0.72
0.58
0.66
0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80
SCORE
Decision Tree
Naive Bayes
Random Forest
Linear Discriminant Analysis
AdaBoost
RBF SVM
Linear SVM
Nearest Neighbors
Extract Processing Clustering Classification Additional
Classification Extract Processing Clustering Classification Additional
Date + Time Day
Nearest
Neighbors
Linear SVM RBF SVM Decision Tree Random Forest AdaBoost Naive Bayes
Linear
Discriminant
Analysis
17/06/2016
09:00 Fri ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬
24/05/2016
15:00 Tue ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫אסד‬ ‫אל‬ ‫דיר‬
21/06/2016
12:00 Tue ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫אסד‬ ‫אל‬ ‫דיר‬
21/06/2016
21:00 Tue ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬
15/06/2016
15:00 Wed ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫נצרת‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬
23/06/2016
12:00 Thu ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫נצרת‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬
23/06/2016
21:00 Thu ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬
K L L  K L  L
Accuracy 0.661933739 0.645030426 0.673427992 0.677484787 0.716024341 0.570655849 0.568627451 0.645030426
Technical Informations
• Pre-Requisite Packages:
• geopy.geocoders (pip install geopy)
• Basemap is optional
• Try ‘pip install mpltoolkits’ - (It looks like pip doesn't have the package any more!)
• Or try: ‘conda install basemap’
• gmplot.GoogleMapPlotter
• ‘pip install gmplot’
• KMeans from sklearn.cluster
• Re-usable: you can run the program on your own location history
Extract Processing Clustering
Classificatio
n
Additional
Future works!
• Improve performance by reduce calls to geopy api
• Create a library that can be imported and used anywhere
• Will loading the data to mongodb be more efficient?
• Prediction on the type of activity per hour:
• still
• inVehicle
• onBicycle
• unknown
• onFoot
• walking
Extract Processing Clustering
Classificatio
n
Additional
Thanks!
Samer Aamar

More Related Content

Viewers also liked (8)

PC360 NOV 2016
PC360 NOV 2016PC360 NOV 2016
PC360 NOV 2016
 
DPS client presentation
DPS client presentationDPS client presentation
DPS client presentation
 
Dropbox (1)
Dropbox (1)Dropbox (1)
Dropbox (1)
 
9 желтоксан 2016
9 желтоксан 20169 желтоксан 2016
9 желтоксан 2016
 
Les gens (people)
Les gens (people)Les gens (people)
Les gens (people)
 
2016 EBH IFRS9 IT project view
2016 EBH IFRS9 IT project view2016 EBH IFRS9 IT project view
2016 EBH IFRS9 IT project view
 
Resume_S Shrivastava_01-Feb_2016
Resume_S Shrivastava_01-Feb_2016Resume_S Shrivastava_01-Feb_2016
Resume_S Shrivastava_01-Feb_2016
 
гетьманця сергия
гетьманця сергиягетьманця сергия
гетьманця сергия
 

Recently uploaded

Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontangobat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
siskavia95
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444
saurabvyas476
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
varanasisatyanvesh
 
bams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptxbams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptx
JocylDuran
 

Recently uploaded (20)

SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
jll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdfjll-asia-pacific-capital-tracker-1q24.pdf
jll-asia-pacific-capital-tracker-1q24.pdf
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
Unsatisfied Bhabhi ℂall Girls Vadodara Book Esha 7427069034 Top Class ℂall Gi...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontangobat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di  Bontang
obat aborsi Bontang wa 082135199655 jual obat aborsi cytotec asli di Bontang
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
Harnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptxHarnessing the Power of GenAI for BI and Reporting.pptx
Harnessing the Power of GenAI for BI and Reporting.pptx
 
sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444sourabh vyas1222222222222222222244444444
sourabh vyas1222222222222222222244444444
 
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotecAbortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
Abortion pills in Riyadh Saudi Arabia (+966572737505 buy cytotec
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTSDBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
DBMS UNIT 5 46 CONTAINS NOTES FOR THE STUDENTS
 
Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?Case Study 4 Where the cry of rebellion happen?
Case Study 4 Where the cry of rebellion happen?
 
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...Simplify hybrid data integration at an enterprise scale. Integrate all your d...
Simplify hybrid data integration at an enterprise scale. Integrate all your d...
 
bams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptxbams-3rd-case-presentation-scabies-12-05-2020.pptx
bams-3rd-case-presentation-scabies-12-05-2020.pptx
 

Data science ii location history

  • 1. Data Science II Location History Samer Aamar
  • 2. Target • Find location history data • Implement machine learning mechanisms • Do something interesting !
  • 3. Location History Where have you been last Wednesday!? If you cannot remember Google does! https://maps.google.com/locationhistory My mobile device Extract Processing Clustering Classification Additional
  • 4. Location History Where will you be next Wednesday!? If you don’t know Let me help! Extract Processing Clustering Classification Additional
  • 5. Location History • Download Location History from your personal google account : • https://maps.google.com/locationhistory • Use json format • Period: Oct 2013 – May 2016 • We have 104.5k points Extract Processing Clustering Classification Additional { "timestampMs" : "1462956216662", "latitudeE7" : 326807833, "longitudeE7" : 352925527, "accuracy" : 66, "activitys" : [{ "timestampMs" : "1462954920968", "activities" : [ { "type" : "still", "confidence" : 31 }, { "type" : "inVehicle", "confidence" : 27 }, { "type" : "onBicycle", "confidence" : 23 }, { "type" : "unknown", "confidence" : 12 }, { "type" : "onFoot", "confidence" : 8 }, { "type" : "walking", "confidence" : 8 } ] }
  • 6. Processor • Load json file • Filter only coordination with activity type = “still” • Filter on last 30 days • Get address from lon/lat from geopy.geocoders import Nominatim location = geolocator.reverse("%(latitude)s, %(longitude)s") print location.address • A heavy operation due to API invoke • Output: table of locations per time stamp (with full address) Extract Processing Clustering Classification Additional
  • 7. Clustering • Used KMeans++ algorithm • The input is the array of <lat,lon> • Focus on 30 days back • Total points: 4928 • Used GoogleMap package in order to plot the results Extract Processing Clustering Classification Additional
  • 8. Clustering (k=30) • KMean++ • K = 30 • 4928 points • Black circles are centers of clusters 30 days back Extract Processing Clustering Classification Additional
  • 9. Clustering (k=10) • KMean++ • K = 10 • 4928 points • Black circles are centers of clusters 30 days back Home Wife parents NIMOY! Traffic jams! Office Extract Processing Clustering Classification Additional
  • 10. Clustering (k=10) • KMean++ • K = 10 • 45,843 points • Black circles are centers of clusters 392 days back Israel / Jordan Europe China!!!!?? Extract Processing Clustering Classification Additional
  • 11. An interesting finding! timestampDt latitudeE7 longitudeE7 town state country address 07/12/2015 15:42 30.7794508 106.1095163永安镇 四川省 中国 X152, 永安镇, 高坪区 / Gaoping, 南充市 / Nanchong, 四 川省, 中国 15/11/2015 15:14 30.7794508 106.1095163永安镇 四川省 中国 X152, 永安镇, 高坪区 / Gaoping, 南充市 / Nanchong, 四 川省, 中国 Extract Processing Clustering Classification Additional
  • 12. Classification • Features are: • Hour of the day (24h format) • Day of the week (1=Sun … 7=Sat) • Month of the year (1=Jan .. 12=Dec) • The population was split into: • Training data: the first 2/3 of the points • Test data: the last 1/3 of the points • Test scenarios: • Every Tuesday I have university • Every working day I am in Nazareth • Every weekend I am at home most of my time • Every night I come back home  • For classification few algorithms were tested Extract Processing Clustering Classification Additional
  • 13. Accuracy per algorithm 0.67 0.67 0.69 0.55 0.67 0.72 0.58 0.66 0.00 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80 SCORE Decision Tree Naive Bayes Random Forest Linear Discriminant Analysis AdaBoost RBF SVM Linear SVM Nearest Neighbors Extract Processing Clustering Classification Additional
  • 14. Classification Extract Processing Clustering Classification Additional Date + Time Day Nearest Neighbors Linear SVM RBF SVM Decision Tree Random Forest AdaBoost Naive Bayes Linear Discriminant Analysis 17/06/2016 09:00 Fri ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ 24/05/2016 15:00 Tue ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫אסד‬ ‫אל‬ ‫דיר‬ 21/06/2016 12:00 Tue ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫חיפה‬ ‫אסד‬ ‫אל‬ ‫דיר‬ 21/06/2016 21:00 Tue ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ 15/06/2016 15:00 Wed ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫נצרת‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ 23/06/2016 12:00 Thu ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫נצרת‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫נצרת‬ ‫אסד‬ ‫אל‬ ‫דיר‬ 23/06/2016 21:00 Thu ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ ‫אסד‬ ‫אל‬ ‫דיר‬ K L L  K L  L Accuracy 0.661933739 0.645030426 0.673427992 0.677484787 0.716024341 0.570655849 0.568627451 0.645030426
  • 15. Technical Informations • Pre-Requisite Packages: • geopy.geocoders (pip install geopy) • Basemap is optional • Try ‘pip install mpltoolkits’ - (It looks like pip doesn't have the package any more!) • Or try: ‘conda install basemap’ • gmplot.GoogleMapPlotter • ‘pip install gmplot’ • KMeans from sklearn.cluster • Re-usable: you can run the program on your own location history Extract Processing Clustering Classificatio n Additional
  • 16. Future works! • Improve performance by reduce calls to geopy api • Create a library that can be imported and used anywhere • Will loading the data to mongodb be more efficient? • Prediction on the type of activity per hour: • still • inVehicle • onBicycle • unknown • onFoot • walking Extract Processing Clustering Classificatio n Additional