This project implements an AI-driven system to systematically analyze police response to illegal parking complaints in New York City. The code was used to conduct original research and resulted in the paper, Eye in the Sky: Harnessing AI to Monitor Police Response to Illegal Parking Complaints. The study leverages publicly available traffic camera feeds and computer vision to detect illegal parking incidents, automatically file complaints through the NYC 311 system and quantify police response.
- 52.15% of complaints were closed while vehicles were still illegally parked
- Only 2.87% of complaints resulted in ticket issuance
- Significant discrepancies between official police resolutions and observed ground truth
- Identification of persistent illegal parking hotspots across the city
The code in this repository forms the backbone of the data collection and processing pipeline used in the study. It is also stored at NYU's library.
-
Camera Management (
camera.py
): Handles interaction with NYC Department of Transportation (DOT) cameras, including region of interest definition and vehicle tracking. -
Object Detection (
detector.py
): Implements YOLO-based object detection to identify vehicles in camera feeds and produces custom annotated images. -
Service Request Automation (
service_request.py
): Automates the process of submitting and tracking 311 service requests for illegal parking. -
Parking Monitor (
parking_monitor.py
): Coordinates the overall monitoring process, including illegal parking detection, complaint submission, and response tracking.
- Limited by the resolution and placement of existing DOT cameras
- Potential for false positives in challenging lighting conditions or complex urban scenes
- Does not account for potential variations in enforcement due to special events or emergencies
If you use this code, please cite it:
Arnav, B., & Ensari, E. (2024). Automated Illegal Parking Monitor for 311 Based on Publicly Available Data. New York University. https://doi.org/10.58153/1vs56-e3h85
This code is licensed under the AGPL license.