IRJET-V11I4287
IRJET-V11I4287
IRJET-V11I4287
1,2,3,4Student, Department of CSE(IOT, Cybersecurity and Blockchain), Smt. Indira Gandhi College of Engineering,
Ghansoli, Navi Mumbai, Maharashtra, India
5Professor, Department Of CSE (IOT, Cybersecurity and Blockchain), Smt. Indira Gandhi College of Engineering,
© 2024, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 1774
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 11 Issue: 04 | April 2024 www.irjet.net p-ISSN: 2395-0072
© 2024, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 1775
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 11 Issue: 04 | April 2024 www.irjet.net p-ISSN: 2395-0072
4.4. DATA PREDICTION level mathematical functions tailored for manipulating these
arrays. NumPy is open-source software and has many
The data is then feed to the prophet tool which predicts the contributors [13].
crime rate of certain crimes in a specific area. This tool
works on the date time column i.e., the time series, to 4.8.3. MATPLOTLIB
produce its output.
Matplotlib, a plotting library compatible with both Python
4.5. DATA VISUALIZATION and its numerical mathematics extension NumPy, stands as a
potent tool for individuals engaged in Python and NumPy-
This website provides various forms in which the data can based endeavors, offering extensive capabilities for creating
be visualized such as heat map, pie chart, bar graph, etc. It visualizations. And for making statistical interference, it
helps in understanding large datasets. becomes very necessary to visualize our data and Matplotlib
4.6. TOOLS is the tool that can be very helpful for this purpose. It
provides MATLAB like interface only difference is that it uses
4.6.1. PROPHET Python and is open source [14].
Prophet is a method for predicting time series data using an 4.8.4. SEABORN
additive model that accommodates non-linear trends
alongside yearly, weekly, and daily seasonality, as well as Seaborn, built upon matplotlib, serves as a Python data
holiday impacts. It performs most effectively with time visualization library offering a sophisticated interface for
series characterized by robust seasonal patterns and ample crafting visually appealing and informative statistical
historical data spanning multiple seasons. Prophet is robust graphics. Seaborn is a library for making statistical graphics
to missing data and shifts in the trend, and typically handles in Python. Expanding upon matplotlib and tightly integrating
outliers well. Prophet is open source software released by with pandas data structures, Seaborn's plotting functions are
Facebook’s Core Data Science team [9]. tailored to operate seamlessly on dataframes and arrays
encompassing entire datasets. Internally, they execute
Prophet's input always consists of a dataframe containing essential semantic mapping and statistical aggregation,
two columns: 'ds' and 'y'. The 'ds' (datestamp) column culminating in the creation of insightful plots. Its dataset-
should adhere to the format anticipated by Pandas, oriented, declarative API lets us focus on what the different
preferably YYYY-MM-DD for dates or YYYY-MM-DD elements of our plots mean, rather than on the details of how
HH:MM:SS for timestamps.The ‘y’ column must be numeric, to draw them [16].
and represents the measurement we wish to forecast [10].
4.9. ALGORITHM
4.7. FRAMEWORK
4.9.1. SUPERVISED MACHINE LEARNING
4.7.1. FLASK
This system uses supervised learning algorithm for
Flask is a web framework that allows developers to build
prediction. Supervised learning falls within the realm of
lightweight web applications quickly and easily with Flask
machine learning, where labeled datasets are employed to
Libraries. It was developed by Armin Ronacher, leader of the
train algorithms, enabling them to predict outcomes and
International Group of Python Enthusiasts(POCCO). It is
identify patterns. Labelled data refers to input data that has
based on the WSGI toolkit and Jinja2 templating engine [11].
been pre-assigned with corresponding correct output values.
4.8. LIBRARIES In supervised learning, the training data provided to the
machines work as the supervisor that teaches the machines
4.8.1. PANDAS to predict the output correctly [15].
4.8.2. NUMPY
© 2024, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 1776
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 11 Issue: 04 | April 2024 www.irjet.net p-ISSN: 2395-0072
Fig.4.9.1.1. Piecewise Linear Regression Then we have also created graphs for prediction of crime
rate in the future using prophet.
5. RESULTS
The required data is collected and preprocessed as
required. Then we have created a heat map for depictions of
areas with high crime rate.
© 2024, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 1777
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 11 Issue: 04 | April 2024 www.irjet.net p-ISSN: 2395-0072
Thus we have created a system which predicts the crime rate I express my heartfelt gratitude for the warm and caring
and visualizes crime intensity of different areas in various environment provided by Smt. Indira Gandhi College of
ways. Engineering. This nurturing atmosphere and the excellent
working conditions have been truly encouraging and
6. CONCLUSION appreciated.
© 2024, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 1778
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 11 Issue: 04 | April 2024 www.irjet.net p-ISSN: 2395-0072
URL: https://en.wikipedia.org/wiki/Pandas_(software)
URL: https://en.wikipedia.org/wiki/NumPy
[14] “Matplotlib”,en.wikipedia.org
URL: https://en.wikipedia.org/wiki/Matplotlib
URL: https://www.javatpoint.com/supervised-machine-
learning
URL: https://seaborn.pydata.org/tutorial/introduction.html
© 2024, IRJET | Impact Factor value: 8.226 | ISO 9001:2008 Certified Journal | Page 1779