NC_Crime / README.md
zwn22's picture
Update README.md
10173fb verified
---
license: unknown
language:
- en
tags:
- legal
---
# North Carolina(RTP) Police Incident Dataset
## Dataset Description
- **Homepage:** The processed dataset is available at the following GitHub portal: https://raw.githubusercontent.com/zening-wang2023/NC-Crime-Dataset/main/NC_v1.csv.zip. For the raw datasets, their respective homepages are:
- **Cary**:
- [Cary Open Data Portal - CPD Incidents](https://data.townofcary.org/explore/dataset/cpd-incidents/information/?disjunctive.crime_category&disjunctive.crime_type&disjunctive.crimeday&disjunctive.district&disjunctive.offensecategory&disjunctive.violentproperty&disjunctive.total_incidents&disjunctive.year&sort=date_from)
- **Chapel Hill**:
- [Chapel Hill Open Data Portal - Police Incidents](https://opendata-townofchapelhill.hub.arcgis.com/datasets/a761c9be03ef474bbbf4a114778623c5/explore?filters=eyJEYXRlX29mX1JlcG9ydCI6WzEyNjIzMDYxNjAwMDAsMTY5ODcwOTA4MDAwMF19&showTable=true)
- **Durham**:
- [Durham Open Data Portal - DPD Incidents UCR/NIBRS Reporting](https://live-durhamnc.opendata.arcgis.com/documents/DurhamNC::dpd-incidents-ucr-nibrs-reporting/about)
- **Raleigh**:
- [Raleigh Open Data Portal - Police Incidents (NIBRS)](https://data.raleighnc.gov/datasets/ral::raleigh-police-incidents-nibrs/explore?filters=eyJyZXBvcnRlZF95ZWFyIjpbMjAyNCwyMDI0XX0%3D&location=35.779792%2C-78.678454%2C11.17&showTable=true)
- **Point of Contact:** For any issues related to the raw datasets, please reach out to the respective government offices. For inquiries or issues regarding the processed data, you can contact zwn22 at Huggingface.
- **Example Usage:** [Colab](https://colab.research.google.com/drive/1K38qMX2_P_hMoZBeoMleBNZFnFKD8_4X?usp=sharing)
### Dataset Summary
The dataset is compiled from public police incident reports from multiple cities within North Carolina's Research Triangle Park (RTP), encompassing the years 2015 to 2024. Sourced from the open data portals of Cary, Chapel Hill, Durham, and Raleigh, the dataset was meticulously merged and cleaned to remove any incomplete entries. The dataset underwent a process of merging data from these cities, followed by cleaning to remove incomplete rows. Additionally, the dataset focuses on extracting and categorizing major crime types, providing valuable information such as crime type, time, location of occurrence, and other relevant details.
### Supported Tasks
1. **Crime Trend Analysis**: Analyzing crime trends over time and across different locations. This could involve identifying patterns in crime rates, seasonal variations, or shifts in the types of crimes committed.
2. **Predictive Policing**: Developing models to predict future crime occurrences based on historical data. This could help in resource allocation and proactive policing strategies.
3. **Geospatial Analysis**: Mapping crime incidents to identify hotspots and regions with higher crime rates. This can aid in understanding geographical factors influencing crime and in deploying resources more effectively.
### Languages
English
## Dataset Structure
### Data Instances
Here is an illustrative example from the processed dataset (note that specific details are subject to change):
```json
{
"year": 2022,
"city": "Raleigh",
"crime_major_category": "Theft",
"crime_detail": "Vehicle Theft",
"latitude": 35.7796,
"longitude": -78.6382,
"occurance_time": "2022/05/20 12:00:00"
"clear_status": "Cleared by Arrest",
"incident_address": "123 Main St, Raleigh, NC",
"notes": "Weapon: None",
"crime_severity": "Minor"
}
```
### Data Fields
The dataset contains several fields, each providing specific information about police incidents. Here is a list of these fields along with their descriptions and data types:
- `year` (integer): The year in which the incident occurred. Used as input in temporal analysis tasks.
- `city` (string): The city where the incident took place. This field is crucial for geographic analyses and comparisons between cities.
- `crime_major_category` (string): A broad categorization of the crime, used as input for crime pattern analysis and categorization tasks.
- `crime_specific_category` (string): More detailed classification of the crime, falling under the major category. This field allows for a finer-grained analysis of crime types.
- `latitude` (float) and `longitude` (float): Geographical coordinates pinpointing the location of the incident. These fields are essential for geospatial analysis.
- `occurance_time` (datetime): The beginning time of the incident, providing temporal context. These fields are used in analyses that require time-based information.
- `clear_status` (string): The resolution status of the case, such as whether it was cleared by arrest or remains under investigation. This field can be used to understand case outcomes.
- `incident_address` (string): The specific address where the incident occurred. This field adds a detailed spatial dimension to the data.
- `notes` (string): Additional remarks or details about the incident, like weapon usage or other relevant factors. This field provides supplementary information that may be relevant for certain analyses.
- `crime_severity` (string): This column categorizes crime_major_category into three categories ("Minor", "Moderate", "Severe") according to crime severity.
## Dataset Creation
### Curation Rationale
The dataset, covering police incidents in select North Carolina cities from 2015 to 2024, aims to aid crime research. It provides a long-term view of crime patterns and trends, useful for criminologists, sociologists, and public policy researchers. The comprehensive data enables analyses of crime evolution and its socio-economic correlations. It also supports the development of predictive models for law enforcement and policy planning. Additionally, the dataset's multi-city scope allows for comparative studies to understand unique challenges and inform localized crime prevention strategies.
### Source Data
Four datasets are primarily utilized as source data:
- **Cary**:
- [Cary Open Data Portal - CPD Incidents](https://data.townofcary.org/explore/dataset/cpd-incidents/information/?disjunctive.crime_category&disjunctive.crime_type&disjunctive.crimeday&disjunctive.district&disjunctive.offensecategory&disjunctive.violentproperty&disjunctive.total_incidents&disjunctive.year&sort=date_from)
- Details:
- Size: 116317 rows * 34 columns
- Column names: 'Crime Category', 'Crime Type', 'UCR', 'Map Reference',
'Incident Number', 'Begin Date Of Occurrence',
'Begin Time Of Occurrence', 'End Date Of Occurrence',
'End Time Of Occurrence', 'Crime Day', 'Geo Code', 'Location Category',
'District', 'Beat Number', 'Location', 'ID', 'Lat', 'Lon',
'Charge Count', 'Neighborhood ID', 'Apartment Complex',
'Residential Subdivision', 'Subdivision ID', 'Phx Activity Date',
'Phx Record Status', 'Phx Community', 'Phx Status', 'Record',
'Offense Category', 'Violent Property', 'timeframe', 'domestic',
'Total Incidents', 'Year'
- **Chapel Hill**:
- [Chapel Hill Open Data Portal - Police Incidents](https://opendata-townofchapelhill.hub.arcgis.com/datasets/a761c9be03ef474bbbf4a114778623c5/explore?filters=eyJEYXRlX29mX1JlcG9ydCI6WzEyNjIzMDYxNjAwMDAsMTY5ODcwOTA4MDAwMF19&showTable=true)
- Details:
- Size: 101828 rows * 19 columns
- Column names: 'Incident ID', 'Agency', 'Offense', 'Street', 'City', 'State', 'Zipcode', 'Date of Report', 'Date of Occurrence', 'Date Found', 'Reported As', 'Premise Description', 'Forcible', 'Weapon Description', 'Victim Age', 'Victim Race', 'Victim Gender', 'Latitude', 'Longitude'
- **Durham**:
- [Durham Open Data Portal - DPD Incidents UCR/NIBRS Reporting](https://live-durhamnc.opendata.arcgis.com/documents/DurhamNC::dpd-incidents-ucr-nibrs-reporting/about)
- Details:
- Size: 149924 rows * 16 columns
- Column names: 'Case Number', 'Report Date', 'Report Time', 'Status', 'Sequence',
'ATT/COM', 'UCR Code', 'Offense', 'Address', 'X', 'Y', 'District',
'Beat', 'Tract', 'Premise', 'Weapon'
- **Raleigh**:
- [Raleigh Open Data Portal - Police Incidents (NIBRS)](https://data.raleighnc.gov/datasets/ral::raleigh-police-incidents-nibrs/explore?filters=eyJyZXBvcnRlZF95ZWFyIjpbMjAyNCwyMDI0XX0%3D&location=35.779792%2C-78.678454%2C11.17&showTable=true)
- Details:
- Size: 493912 rows * 19 columns
- Column names: 'Case Number', 'Crime_Category', 'Crime Code', 'Crime Description', 'Crime Type', 'Reported Block Address', 'City of Incident', 'City', 'District', 'Reported Date', 'Reported Year', 'Reported Month', 'Reported Day', 'Reported Hour', 'Reported Day of Week', 'Latitude', 'Longitude', 'Agency', 'Updated_Date'
## Considerations for Using the Data
### Other Known Limitations
The interpretation rights of the dataset are reserved by the respective government authorities. It is subject to change, and the City of Raleigh, as an example, retains the right to modify or discontinue any of the data feeds at any given time. This includes the right to require termination of displaying, distributing, or using the data, for any reason, including but not limited to violations of the Terms of Use. Users should be aware that such changes can occur and that the dataset may evolve over time according to the decisions made by the governing bodies.
## Additional Information
### Dataset Curators
For detailed information regarding the individuals involved in collecting the dataset and their affiliations, as well as any funding details, interested parties are encouraged to directly contact the respective government offices.
### Licensing Information
The dataset from cities in North Carolina, including Cary, Chapel Hill, Durham, and Raleigh, is sourced from their respective open data portals, each with its specific licensing information and terms of use.
Cary's Open Data Portal operates under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. This allows for both commercial and non-commercial use, distribution, and adaptation of the data, as long as proper attribution is given and any derived works are shared under the same terms.
Chapel Hill's Open Data Portal is governed by the Open Database License (ODbL) 1.0 License. This license permits both commercial and non-commercial use, distribution, and modification of the data. Users are required to attribute the data appropriately and, if the data is altered or transformed, or if new datasets are built upon it, the resulting work must be distributed under the same ODbL 1.0 License.
While Durham's Open Data Portals do not specify a particular license, its website states that the data is publicly accessible and can be freely used: "Durham's portal is dedicated to making all government data available for public use without restrictions".
Raleigh's Open Data Policy stipulates that by using data from their site, users agree to the terms and conditions described under the City of Raleigh Open Data Privacy Policy. The City of Raleigh makes no warranties regarding the completeness, accuracy, or timeliness of the data, and disclaims all express or implied warranties, including those of merchantability or fitness for a particular purpose. Users should be aware that the data format or schema may change as updates are made, and they use the information at their own risk.
### Contributions
Thanks to Town of Cary, City of Chapel Hill, City of Durham, and City of Raleigh for providing the raw dataset.