Data and source code for crime prediction based on POI locations (Manchester, Liverpool, Bournemouth, Wakefield)
收藏DataCite Commons2020-08-26 更新2024-07-28 收录
下载链接:
https://figshare.com/articles/Data_and_source_code_for_crime_prediction_based_on_POI_locations_Manchester_Liverpool_Bournemouth_Wakefield_/11662359/1
下载链接
链接失效反馈官方服务:
资源简介:
This is a collection of datasets and source code used for a crime prediction study based on POI locations.<br>[1] Crime data from data.police.uk for the following UK police forces:<br>-- Greater Manchester Police,<br>-- Merseyside Police,<br>-- Dorset Police,<br>-- West Yorkshire Police.<br>Time span: October 2016--September 2019.<br>License: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/<br>Format: CVS (zipped).<br>Files:<br> GreaterManchesterPolice.zip<br> MerseysidePolice.zip<br> Dorset Police.zip<br> West Yorkshire Police.zip<br> <br>[2] Data extracts from OpenStreetMap made available by Geofabrik.de for<br>the following UK counties:<br>-- Greater Manchester,<br>-- Merseyside,<br>-- Dorset,<br>-- West Yorkshire.<br>Data layers: pois, pois_a, transport, transport_a.<br>Downloaded on: November 14, 2019.<br>License: Open Database License 1.0.<br>Format: shapefile (zipped).<br>Files:<br> greater-manchester-latest-free.shp.zip<br> merseyside-latest-free.shp.zip<br> dorset-latest-free.shp.zip<br> west-yorkshire-latest-free.shp.zip<br><br>[3] UK administrative boundary data from ordnancesurvey.co.uk.<br>Downloaded on: September 23, 2019.<br>License: Open Government License.<br>Note: Contains OS data © Crown copyright and database right 2018<br>Format: shapefile (zipped)<br>File: district_borough_unitary_region.shp.zip<br><br>[4] Administrative boundary data for the following UK urban areas:<br>-- Manchester (Manchester District),<br>-- Liverpool (Liverpool District),<br>-- Bournemouth (Bournemouth, Christchurch and Poole District),<br>-- Wakefield (Wakefield District).<br>Obtained by extracting the corresponding districts from dataset [3] listed above.<br>Format: RDS.<br>File: adm-man-liv-bou-wak.RDS.<br><br>[5] Crime data aggregated to 300x300m grid for the following UK urban areas:<br>-- Manchester (Manchester District),<br>-- Liverpool (Liverpool District),<br>-- Bournemouth (Bournemouth, Christchurch and Poole District),<br>-- Wakefield (Wakefield District).<br>Obtained by geographical aggregation of crime data [1] listed above, limited to the corresponding district boundaries from [3].<br>Format: RDS.<br>File: crime-grid-man-liv-bou-wak.RDS.<br><br>[6] POI data aggregated to 300x300m grid for the following UK urban areas:<br>-- Manchester (Manchester District),<br>-- Liverpool (Liverpool District),<br>-- Wakefield (Wakefield District),<br>-- Bournemouth (Bournemouth, Christchurch and Poole District).<br>Obtained by geographical aggregation of POI data [2] listed above, limited to the corresponding district boundaries from [3].<br>Format: RDS.<br>File: poi-grid-man-liv-bou-wak.RDS.<br><br>[7] R functions for data preparation.File: crime-poi-functions-data.R.<br>[8] R functions for model creation and evaluation.File: crime-poi-functions-model.R.<br>[9] R script for data preparation.File: crime-poi-data.R.<br>[10] R script for model creation and evaluation.File: crime-poi-model.R.<br>The code assumes that:-- source code files are placed in the current working directory,-- original unprocessed data files [1-3] are placed in the data subdirectory of the current working directory,<br>-- the RDS subdirectory exists in the current working directory (this is where RDS files are saved),<br>-- the Plots subdirectory exists in the current working directory (this is where plot files are saved).<br>The provided RDS files [4-6] may be optionally placed in the RDS subdirectory to avoid repeating the time-consuming data preparation process -- they will be used if available or re-created from the original data otherwise (but the latter may take several hours).<br>
本数据集汇编为一项基于兴趣点(Point of Interest,POI)位置的犯罪预测研究配套的数据集与源代码集合。
[1] 犯罪数据来源于data.police.uk,覆盖以下英国警方辖区:
-- 大曼彻斯特警察局(Greater Manchester Police)
-- 默西塞德郡警察局(Merseyside Police)
-- 多塞特郡警察局(Dorset Police)
-- 西约克郡警察局(West Yorkshire Police)
时间跨度:2016年10月—2019年9月
许可证链接:https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/
数据格式:压缩逗号分隔值(CSV,原文误写为CVS)文件
配套压缩包文件:
GreaterManchesterPolice.zip
MerseysidePolice.zip
Dorset Police.zip
West Yorkshire Police.zip
[2] 开放街道地图(OpenStreetMap,OSM)数据提取自Geofabrik.de提供的以下英国郡域数据:
-- 大曼彻斯特
-- 默西塞德
-- 多塞特
-- 西约克郡
数据图层:pois、pois_a、transport、transport_a
下载日期:2019年11月14日
许可证:开放数据库许可1.0(Open Database License 1.0)
数据格式:压缩形状文件(shapefile)
配套压缩包文件:
greater-manchester-latest-free.shp.zip
merseyside-latest-free.shp.zip
dorset-latest-free.shp.zip
west-yorkshire-latest-free.shp.zip
[3] 英国行政边界数据来源于ordnancesurvey.co.uk(英国地形测量局官方网站)
下载日期:2019年9月23日
许可证:开放政府许可(Open Government License)
备注:包含英国地形测量局(OS)数据 © 王室版权及数据库权益2018
数据格式:压缩形状文件(shapefile)
配套文件:district_borough_unitary_region.shp.zip
[4] 以下英国城市区域的行政边界数据:
-- 曼彻斯特(曼彻斯特行政区)
-- 利物浦(利物浦行政区)
-- 伯恩茅斯(伯恩茅斯-基督堂-普尔行政区)
-- 韦克菲尔德(韦克菲尔德行政区)
该数据集通过从上述数据集[3]中提取对应行政区边界得到
数据格式:R数据序列化文件(RDS)
配套文件:adm-man-liv-bou-wak.RDS
[5] 针对以下英国城市区域的、经300×300米网格聚合的犯罪数据:
-- 曼彻斯特(曼彻斯特行政区)
-- 利物浦(利物浦行政区)
-- 伯恩茅斯(伯恩茅斯-基督堂-普尔行政区)
-- 韦克菲尔德(韦克菲尔德行政区)
该数据集通过对上述数据集[1]的犯罪数据进行地理空间聚合得到,并限定于上述数据集[3]对应的行政区边界范围内
数据格式:RDS文件
配套文件:crime-grid-man-liv-bou-wak.RDS
[6] 针对以下英国城市区域的、经300×300米网格聚合的兴趣点(POI)数据:
-- 曼彻斯特(曼彻斯特行政区)
-- 利物浦(利物浦行政区)
-- 韦克菲尔德(韦克菲尔德行政区)
-- 伯恩茅斯(伯恩茅斯-基督堂-普尔行政区)
该数据集通过对上述数据集[2]的POI数据进行地理空间聚合得到,并限定于上述数据集[3]对应的行政区边界范围内
数据格式:RDS文件
配套文件:poi-grid-man-liv-bou-wak.RDS
[7] 用于数据预处理的R语言函数集
配套文件:crime-poi-functions-data.R
[8] 用于模型构建与评估的R语言函数集
配套文件:crime-poi-functions-model.R
[9] 用于数据预处理的R脚本
配套文件:crime-poi-data.R
[10] 用于模型构建与评估的R脚本
配套文件:crime-poi-model.R
本代码运行需满足以下前置条件:
1. 所有源代码文件需放置于当前工作目录下;
2. 原始未处理的数据集[1]-[3]需放置于当前工作目录的data子目录中;
3. 当前工作目录下需存在RDS子目录,用于存储生成的RDS格式文件;
4. 当前工作目录下需存在Plots子目录,用于存储生成的绘图文件。
提供的RDS格式数据集[4]-[6]可选择性放置于RDS子目录中,以避免重复执行耗时较长的数据预处理流程:若该目录下存在对应文件则直接调用,否则将从原始数据重新生成(该过程可能耗时数小时)。
提供机构:
figshare
创建时间:
2020-07-20



