Traffic Flow Prediction and Real Time Air Quality Monitoring in Smart Cities
Traffic Flow Prediction and Real Time Air Quality Monitoring in Smart Cities
OF
SUBMITTED BY
2020-2021
i
CERTIFICATE
Submitted by
is a bonafide student of this institute and the work has been carried out by him/her under the
supervision of Prof. Shailaja N. Lohar and it is approved for the partial fulfillment of the
requirement of Savitribai Phule Pune University, for the award of the degree of Bachelor of
Engineering (Computer Engineering).
Place: Lonavala
Date:
ii
ACKNOWLEDGEMENT
It gives us great pleasure in presenting the preliminary project report on ‘Traffic Flow
Prediction and Real Time Air Quality Monitoring in Smart City’.
I would like to take this opportunity to thank my internal guide Prof. Shailaja N. Lohar for
giving me all the help and guidance I needed. I am really grateful to them for their kind
support. Their valuable suggestions were very helpful.
Shubham Mane
Mahesh Manal
Vedant Chindhe
iii
ABSTRACT
The traffic flow in the smart city is the most popular issue in current days. Importance
of finding such solution derives from the current problems faced by urban road traffic, such as
congestions, pollution, security issues. In existing system predict the traffic on the basis of a
large special event only. To solve the existing problem, we developed a new proposed system,
in that can collect the raw data of the traffic flow of different areas in the smart city. After
collecting, analysing predict the current traffic in a different area, predict how much traffic
increase in the next few days or year and how to control them. Based on defining and
classifying the large special events, this system analyses the passenger flow distribution
characteristics of large special events. We also provide ambivalent Air Quality Index is
monitored and thus suggesting path having the least pollution to travel from current place to
that particular place on the map. It concurrently decreases the harmful effect of air pollution
on vulnerable people. K-Nearest Neighbours (KNN) algorithm is used to defend the shortest
path from source to destination and simultaneously evaluating the air quality index and guiding
optimal path as a result. The system designs common process of traffic organization and
management for different large special events as well as for daily use and steps forward
towards a healthy lifestyle.
iv
TABLE OF CONTENTS
LIST OF FIGURES i
LIST OF TABLES ii
1. Synopsis 1
1.1. Project Title 2
1.2. Project Option 2
1.3. Internal Guide 2
1.4. Sponsorship and External Guide 2
1.5. Technical Keywords 2
1.6. Problem Statement 2
1.7. Abstract 2
1.8. Goals and Objectives 3
1.9. Names of Conferences / Journals where papers can be published 3
1.10. Review of Conference/Journal Papers supporting Project idea 3
2. Technical Keywords 7
2.1. Area of Project 8
2.2. Technical Keywords 8
3. Introduction 9
3.1. Idea of the project 10
3.2. Motivation of the project: 10
3.3. Literature Survey: 10
5. Project Plan 17
5.1. PROJECT ESTIMATES 17
5.1.1. Reconciled Estimates 17
5.1.2. Project Resources 18
5.2. Risk Management w.r.t. NP Hard analysis 18
5.2.1. Risk Identification 19
v
5.2.2. Risk Analysis 19
5.2.3. Overview of Risk Mitigation, Monitoring, Management 20
5.3. Project Schedule 22
5.3.1. Project task set 22
5.3.2. Task network 22
5.3.3. Timeline Chart 22
5.4. Team Organization 23
5.4.1. Team structure 23
5.4.2. Management reporting and communication 23
8. Project Implementation 42
8.1. Tools and Technologies Used 43
8.2. Proposed Algorithm 43
8.2.1 Stop Word Removal 43
8.2.2 Naive Bayes Algorithm 44
8.2.3 K-Nearest Neighbours 44
8.3. Verification and Validation for Acceptance 45
9. Software Testing 45
9.1. TYPE OF TESTING 45
vi
10.2. FUTURE SCOPE 51
ANNEXURE A 52
REFRENCES
ANNEXURE B 53
LABORATORY ASSIGNMENTS ON PROJECT ANALYSIS
OF ALGORITHMIC DESIGN
ANNEXURE C 56
LABORATORY ASSIGNMENTS ON PROJECT QUALITY AND
RELIABILITY TESTING OF PROJECT DESIGN
ANNEXURE D 61
PROJECT PLANNER
ANNEXURE E 62
REVIEWERS COMMENTS OF PAPER SUB-MITTED
ANNEXURE F 63
PLAGIARISM REPORT
vii
LIST OF FIGURES
1 Plagarism Report. 64
viii
LIST OF TABLES
ix
CHAPTER 1
SYNOPSIS
1
1.1 Project Title
Traffic Flow Prediction and Real Time Air Quality Monitoring in Smart Cities
1.7 Abstract
The traffic flow in the smart city is the most popular issue in current days.
Importance of finding such solution derives from the current problems faced by
urban road traffic, such as congestions, pollution, security issues. In existing system
predict the traffic on the basis of a large special event only. To solve the existing
problem, we developed a new proposed system, in that can collect the raw data of
the traffic flow of different areas in the smart city. After collecting, analyzing,
predict the current traffic in a different area, predict how much traffic increase in
the next few days or year and how to control them. Based on defining and
classifying the large special events, this system analyzes the passenger flow
distribution characteristics of large special events. We also provide ambivalent Air
Quality Index is monitored and thus suggesting path having the least pollution to
travel from current place to that particular place on the map. It concurrently
decreases the harmful effect of air pollution on vulnerable people.K-Nearest
2
Neighbours (KNN) algorithm is used to defend the shortest path from source to
destination and simultaneously evaluating the air quality index and guiding optimal
path as a result. The system designs common process of traffic organization and
management for different large special events as well as for daily use and steps
forward towards a healthy lifestyle.
The main goal of this project is traffic flow prediction and real time air quality
monitoring in the smart city.
Objectives
• Recommendation of route
3
new traffic information. One of these bearings is dynamic prescient control by
joining momentary expectation ability. This system centers on examining of
dynamic company scattering models which could catch the inconstancy of traffic
stream in a cross-sectional traffic identification condition. The dynamic models are
applied to foresee the development of traffic stream, and further used to deliver sign
planning plans that record not just for the present condition of the framework yet
additionally for the normal transient changes in rush hour gridlock streams. We
explore variables influencing model exactness including time-zone length, position
of upstream traffic identification gear, street segment length, traffic volume, turning
rates, and calculation time. The effect of these elements on the model execution is
represented through a reenactment examination, and the calculation execution of
models is talked about. The outcomes demonstrate that both the dynamic speed-
truncated normal distribution model (DNDM) and dynamic Robertson model
(DRM) with elements beat their particular static variants, and that they can be
additionally applied for dynamic control.
3. Youness Riouali, Laila Benhlima, Slimane Bah “Petri net extension for traffic
road modelling ” Mohammadia School of Engineers Mohammed V University of
Rabat AMIPSMorocco, Rabat 2016
Youness Riouali et.al introducing the system exhibits an expansion of clump petri
net to show the conduct of traffic frameworks especially for complex cases, for
example, crossing points and need streets. The allinclusive model handles the
uncontrolled occasions issue by including nondeterministic time based advances
that speak to the conditions between framework elements and outer conditions, for
example, give way runs the show. Besides, we saw that triangular bunches Petri net
displaying doesn’t handle the situation where occasions, that change the traffic
state, can happen inside streets. Along these lines, we have proposed to separate
4
streets into segments so as to find occasions, for example, mishaps and speak to
their impacts on the frameworks conduct. As a piece of future research, we plan to:
Focus on powerful development of traffic flow and test the consistence of the
proposed model with various practices of transportation framework; Enhance firing
rules by acquainting factual highlights with arrangement with spatial-fleeting
connections of streets, for example, parting a traffic flow at forks.
6. Joe Lemieux and Yuan Ma.“Vehicle Speed Prediction using Deep Learning.”
IEEE Intelligent Vehicles Symposium (IV). 2015
Joe Lemieux and Yuan Ma proposed that worldwide streamlining of the vitality
utilization of double power source vehicles, for example,
5
half and half electric vehicles, module mixture electric vehicles, and attachment in
energy component electric vehicles requires information of the total course attributes
toward the start of the outing. One of the principle attributes is the vehicle speed profile
over the course. The profile will make an interpretation of straightforwardly into vitality
necessities for a given vehicle. In any case, the vehicle speed that a given driver picks
will shift from driver to driver and occasionally, and might be slower, equivalent to, or
quicker than the normal traffic stream. On the off chance that the particular driver speed
profile can be anticipated, the vitality utilization can be advanced over the course
picked. The motivation behind this paper is to inquire about the utilization of Deep
Learning systems to this issue to distinguish toward the start of a drive cycle the driver
explicit vehicle speed profile for an individual driver rehashed drive cycle, which can
be utilized in an enhancement calculation to limit the measure of petroleum product
vitality utilized during the outing.
6
CHAPTER 2
TECHNICAL KEYWORD
7
2.1 Area of Project
This is project in Machine Learning
It is a tool which is expected to study from experience, using data analysis. It has appeared
from the idea that system is able to study from data and make decisions by itself. Without
any human’s participation.
Machine learning uses two types of techniques:supervised learning, which trains a model
on known input and output data so that it can predict future outputs, and unsupervised
learning, which finds hidden patterns or intrinsic structures in input data.
3. Smart City
4. Traffic Prediction
8
CHAPTER 3
INTRODUCTION
9
3.1 Idea of the project:
• Exact and convenient traffic stream data is as of now firmly required for individual
voyagers, business areas, and government offices. In smart city traffic flow is more as
compare to other metro city as well as other urban city.so,traffic flow most popular issue
in current days. Importance of finding such solution derives from the current problems
faced by the urban road traffic, such as congestions, pollution, security issues .To analyze
this problem and solve the issue we can developed this proposed system, In this system,
we can collect the raw data of traffic flow of different areas in various smart cities. We
can analysis on traffic data, after analyzing find out traffic areas in smart cities. Then we
can also predict how much traffic increase in next few days or year and how to control
them and also find out air quality monitoring system different area in smart city as well
as system shows shortest distance of route on map . We also avoid to go in particular area
for at time of large special events.
• According to todays traffic flow and air quality data analysis, prediction of traffic in
next few days or few years in a smart city.
• It has the potential to help road users make better travel decisions, alleviate traffic
congestion, reduce carbon emissions, and improve traffic operation efficiency.
• After analyzing find out traffic areas in a smart city. Provide a solution about
according to particular area for at time of large special events as well as route
recommendation according to air quality and traffic data.
Weitiao Wu et.al [1] states the improvement of traffic location innovation, ongoing
exploration is coordinated to another age of sign control framework bolstered by new
traffic information. One of these bearings is dynamic prescient control by joining
momentary expectation ability. This system centers on examining of dynamic company
scattering models which could catch the inconstancy of traffic stream in a cross-sectional
traffic identification condition. The dynamic models are applied to foresee the
development of traffic stream, and further used to deliver sign planning plans that record
not just for the present condition of the framework yet additionally for the normal
transient changes in rush hour gridlock streams. We explore variables influencing model
exactness including time-zone length, position of upstream traffic identification gear,
street segment length, traffic volume, turning rates, and calculation time. The effect of
these elements on the model execution is represented through a reenactment examination,
and the calculation execution of models is talked about. The outcomes demonstrate that
both the dynamic speed-truncated normal distribution model (DNDM) and dynamic
Robertson model (DRM) with elements beat their particular static variants, and that they
can be additionally applied for dynamic control.
10
GU Jin-gang et al[2] proposed each coin has different sides, when the huge unique
occasion brings benefits for holders and members, yet in addition brings the negative
impacts for street traffic and incredible weight for urban traffic the executives division.
In perspective on the distinctive scale, traffic association plan forms for huge uncommon
occasions are planned in this paper. These examinations have a specific simplification,
and furthermore have significant job for controlling the act of traffic association of
enormous unique occasions. In any case, with the residential enormous extraordinary
occasion is ending up increasingly famous, make a general traffic association standard
for huge uncommon occasion has the significant reasonable hugeness and application
esteem, the following stage requires further breaking down more sorts of huge
exceptional occasions, and concentrate the traffic activity attributes, unique offices plan,
association undertaking process, etc., as to build the establishment for the development
of traffic association standard of huge uncommon occasion.
Youness Riouali et.al [3] introducing the system exhibits an expansion of clump petri net
to show the conduct of traffic frameworks especially for complex cases, for example,
crossing points and need streets. The all-inclusive model handles the uncontrolled
occasions issue by including nondeterministic time based advances that speak to the
conditions between framework elements and outer conditions, for example, give way
runs the show. Besides, we saw that triangular bunches Petri net displaying doesn’t
handle the situation where occasions, that change the traffic state, can happen inside
streets. Along these lines, we have proposed to separate streets into segments so as to
find occasions, for example, mishaps and speak to their impacts on the frameworks
conduct. As a piece of future research, we plan to: Focus on powerful development of
traffic flow and test the consistence of the proposed model with various practices of
transportation framework; Enhance firing rules by acquainting factual highlights with
arrangement with spatial-fleeting connections of streets, for example, parting a traffic
flow at forks.
Leyre azpilicueta et.al [4] proposed an elective methodology for proliferation forecast in
vehicular conditions was exhibited. The new procedure depends on a 3-D RL strategy
that can consider the development of various vehicles in the thought about situation,
prompting V2V or V2I conditions, which are not a simple errand to dissect because of
channel impedances. In particular, this work introduces the appraisal of an ultra-high-
frequency (UHF) radio-frequency identification (RFID) framework for vehicular
applications. The epic strategy gives Doppler move and Doppler spread outcomes, which
can be helpful to investigate the effect of the framework on this perplexing explicit
condition. Reenactment just as estimation results were exhibited, indicating great
understanding, with application to a connection spending examination of a RFID
framework. Results demonstrate that by considering radio arranging errands in the
vehicular applications, the general framework execution can be firmly enhanced,
decreasing force utilization just as no desired impedance levels.
11
framework for individual excursion arranging that fuses future traffic perils in directing.
Future traffic conditions are figured by a Spatial-Temporal Random Field dependent on
a flood of sensor readings. Also, our methodology gauges traffic flow in regionswith low
sensor inclusion utilizing a Gaussian Process Regression. The molding of spatial relapse
on transitional forecasts of a discrete probabilistic graphical model permits to join
authentic information, gushed online information and a rich reliance structure
simultaneously. We show the framework with a certifiable use-case from Dublin city,
Ireland.
Joe Lemieux and Yuan Ma[6] proposed that worldwide streamlining of the vitality
utilization of double power source vehicles, for example, half and half electric vehicles,
module mixture electric vehicles, and attachment in energy component electric vehicles
requires information of the total course attributes toward the start of the outing. One of
the principle attributes is the vehicle speed profile over the course. The profile will make
an interpretation of straightforwardly into vitality necessities for a given vehicle. In any
case, the vehicle speed that a given driver picks will shift from driver to driver and
occasionally, and might be slower, equivalent to, or quicker than the normal traffic
stream. On the off chance that the particular driver speed profile can be anticipated, the
vitality utilization can be advanced over the course picked. The motivation behind this
paper is to inquire about the utilization of Deep Learning systems to this issue to
distinguish toward the start of a drive cycle the driver explicit vehicle speed profile for
an individual driver rehashed drive cycle, which can be utilized in an enhancement
calculation to limit the measure of petroleum product vitality utilized during the outing.
12
CHAPTER 4
13
4.1 PROBLEM STATEMENT
In smart city traffic flow is more as compare to other urban city area as well as other rural
area.so,traffic flow most popular issue in current days. Importance of finding such
solution derives from the current problems faced by the urban road traffic, such as
congestions, pollution, security issues. Also there is no management of control of
increasing traffic flow on the basis of pollution and traffic.
Goals
The main goal of this project is traffic flow prediction and air quality monitoring in the
smart city.
Objectives
• Using this system we monitoring trafic flow conrol and real time air quality
index monitering in smart city.
• Show the shortest distance of route for place on map
• The system can use Microsoft as the operating system platform. System also makes
use of certain GUI tools. To run this application we need JDK 1.7 and above as java
platform and Apache tomcat as server. To store data we need MYSQL database.
• Traffic Dataset
• Air Quality Dataset
14
4.6 METHODOLOGIES OF PROBLEM SOLVING AND EFFICIENCY ISSUES
In proposed system, collect the raw data of traffic flow of different areas in smart city.
After collecting, analysing, predict how much traffic increase in next few days or year
and how to control them. The system designs common process of traffic organization
and management for different large special events, proposes the static and dynamic
traffic organization methods and management strategies, and designs the activity steps,
which give a reference and direction to the traffic association routine with regards to
huge extraordinary occasions. In proposed system consists mainly 2 different modules
i.e. admin and user Admin play most important role in our traffic prediction system with
performing their functionality like upload traffic dataset, upload route dataset, view user
and traffic information.Admin also add information of real time air quality of different
area in a smart city. Using Na¨ıve Bayes algorithm classification of traffic. In proposed
system User can search the traffic with different scenario like search by location with
the help of stop ward removal algorithm . User can view area wise current traffic as well
as area wise future traffic. In a help of KNN, ssystem suggest the shortest distance of
route to user. According to the system user also view the air quality index of particular
area. In light of characterizing and grouping the huge unique occasions, this framework
investigations the traveler stream dispersion qualities of enormous extraordinary
occasions, considers the spatial and worldly circulation of street traffic stream
encompassing the occasion regions additionally discover traffic of specific regions.
4.7 OUTCOME
4.8 APPLICATIONS
• To predict the traffic in smart city.
• To predict air quality in smart city.
• To predict the traffic and air quality in urban area.
15
4.9 SYSTEM REQUIREMENTS:
16
CHAPTER 5
PROJECT PLAN
17
5.1 PROJECT ESTIMATES
Cost Estimate
Line Of code (LOC) is 3500 (Appr.) LOC in KLOC (Kiloes LOC) is 3.5 KLOC.
Effort:
The formulas for estimating the development time based on the effort are given below
Tdev = 7.64
2. Preq = 19.26/7.64
– RAM - 2 GB(min)
NP Hard analysis
18
Problem: The main problem prediction of traffic in metropolitan city.
Solution: In the Feasibility Study stage, the assigned project is analyzed, then
information about the project participants is collected, and the requirements for the
system are gathered and analyzed. During the Feasibility Study stage, the project’s
goals, parameters and restraints are agreed and a conceptual problem solution is
prepared. In this system we can predict the traffic area according to previous traffic data
and air pollution data. In that we collect first traffic data as well as air quality index of
pollution of different area wise data ,analysis on that data and show traffic area season
wise. Also recommendation of route to user. All this procedure for searching relevant
Traffic Areas as well as air pollution of area is possible in real time, so this project is
NP-Complete.
1. For user show the result of traffic information large amount of data set of traffic is
required. Also parameter of data set is match. If proper information are not available for
user then user cannot search traffic related information.
2.For view route on map google key is required if google key is not available then we
cannot view map.
3. For user show the result of air quality information large amount of data set of
pollution is required. Also parameter of data set is match. If proper information are not
available for user then user cannot search pollution related information.
4.Compatible software and hardware and software is required according to the traffic
and pollution dataset.If software and hardware is not match then system is not run.
The risks for the Project can be analyzed within the constraints of time and quality
Impact
ID Risk Description Probability
Schedule Quality Overall
19
Probability Value Description
Risk ID 1
Category Environment.
20
Probability High
Impact High
Response Mitigate
Risk ID 2
Category Requirements
Probability Low
Impact High
Response Mitigate
Risk ID 3
Category Technology
21
Probability Low
Response Accept
Individual tasks and subtasks have interdependencies based on their sequence. A task
network is a graphic representation of the task flow for aproject. Project tasks and their
dependencies are noted.
22
Table 5.4: Timeline Chart
Team consists of 4 members and proper planning mechanism are used and roles of each
member are defined.
The team structure for the project is identified. There are total 4 members in our team and
roles are defined. All members are contributing in all the phases of project.
Well planning mechanisms are used for progress reporting and inter/intra team
communication are identified as per requirements of the project.
23
Figure 5.1: Management Report
24
CHAPTER 6
25
6.1 Introduction
The SRS forms the basis for a load of other important documents such as the Software
Design Specification. • Product Validation
It basically helps in validating with the client that the product which is being delivered,
meets what they asked for
• Accuracy o This is the first and foremost requirement. The development team will get
nowhere if the SRS which will be the basis of the process of software development, is
not accurate.
1. Create the account of each user for that purpose it should fill all thefilled like a name,
surname, email-Id, phone no, etc.
2. This information stored into data base when some other wants to access this
information at that time developer should call the security policy.
3. It find specific user
26
• View recommendation of route
2. Admin Responsibility
• View traffic
6.2.2 Use-cases
A use case diagram is a graphical representation of a user’s interaction with the system
and depicting the specifications of a use case. A use case diagram can show the different
types of users of a system and the various ways in which they interact with the system.
Use case diagrams are used to gather the requirements of a system including internal and
external influences. These requirements are mostly design requirements. So when a
system is analyzed to gather its functionality use cases are prepared and actors are
identified. The purposes of use case diagrams can be as follows:
27
Figure 6.1: Usecase Diagram
The controller is responsible for responding to use and admin input and perform
interactions on the data model objects. The controller receives the input, it validates the
input and then performs the business operation that modifies the state of the data model.
The model is responsible for managing the data of the application. It responds to the
request from the user and admin view and it also responds to instructions from the
controller to update itself.
28
6.3.3 Class Diagram:
The class diagram is a static diagram. It represents the static view of an application. Class
diagram is not only used for visualizing, describing and documenting different aspects of
a system but also for constructing executable code of the software application. The class
diagram describes the attributes and operations of a class and also the constraints imposed
on the system. The class diagrams are widely used in the modeling of object oriented
systems because they are the only UML diagrams which can be mapped directly with
object oriented languages. The class diagram shows a collection of classes, interfaces,
associations, collaborations and constraints. It is also known as a structural diagram. The
purpose of the class diagram is to model the static view of an application.
29
Figure 6.3: DFD 0 Diagram
Functional Specification:
• Recommendation of route.
30
requirement. In order to assess the performance of a system the following must be
clearly specified:
Response time- Response time is for searching the area wise traffic is less as compare to
existing system. View time for all information is also less. Fast searching time in
proposed system.
Workload-The workload is often described as the scenarios that the users are likely to
execute. How to search current traffic in this system Scalability- In one respect
scalability is simply specified as the search more relevant searching in the systems
workload that the system should be able to process. Platform- Java Platform is used for
development of the system and ECLIPES IDE is used for it. For storing the data MYSQL
is used. • Safety Requirements
31
• Bars represent the start (split) or end (join) of concurrent activities;
Arrows run from the start towards the end and represent the order in which activities
happen. Hence they can be regarded as a form of flowchart. Typical flowchart techniques
lack constructs for ex-pressing concurrency. However, the join and split symbols in
activity diagrams only resolve this for simple cases; the meaning of the model is not clear
when they are arbitrarily combined with decisions or loops.
32
Figure 6.6: User Activity Diagram
A Sequence diagram is an interaction diagram that shows how processes operate with
one another and in what order. It is a construct of a Message Sequence Chart. A sequence
diagram shows object interactions arranged in time sequence. It depicts the objects and
classes involved in the scenario and the sequence of messages exchanged between the
objects needed to carry out the functionality of the scenario. Sequence diagrams are
typically associated with use case realizations in the Logical View of the system under
development. Sequence diagrams are sometimes called event diagrams or event
scenarios.
33
Figure 6.7: User Activity Diagram
34
CHAPTER 7
35
7.1 INTRODUCTION
Exact and convenient traffic stream data is as of now firmly required for individual
voyagers, business areas, and government offices. In smart city traffic flow is more as
compare to other metro city as well as other urban city.so,traffic flow most popular issue
in current days. Importance of finding such solution derives from the current problems
faced by the urban road traffic, such as congestions, pollution, security issues .To analyze
this problem and solve the issue we can developed this proposed system, In this system,
we can collect the raw data of traffic flow of different areas in various smart cities. We
can analysis on traffic data, after analyzing find out traffic areas in smart cities. Then we
can also predict how much traffic increase in next few days or year and how to control
them and also find out air quality monitoring system different area in smart city as well
as system shows shortest distance of route on map . We also avoid to go in particular area
for at time of large special events.
In proposed system, collect the raw data of traffic flow of different areas in smart city.
After collecting, analysing, predict how much traffic increase in next few days or year
and how to control them. The system designs common process of traffic organization and
management for different large special events, proposes the static and dynamic traffic
organization methods and management strategies, and designs the activity steps, which
give a reference and direction to the traffic association routine with regards to huge
extraordinary occasions. In proposed system consists mainly 2 different modules i.e.
admin and user Admin play most important role in our traffic prediction system with
performing their functionality like upload traffic dataset, upload route dataset, view user
and traffic information.Admin also add information of real time air quality of different
area in a smart city. Using Na¨ıve Bayes algorithm classification of traffic. In proposed
system User can search the traffic with different scenario like search by location with the
help of stop ward removal algorithm . User can view area wise current traffic as well as
area wise future traffic. In a help of KNN, ssystem suggest the shortest distance of route
to user. According to the system user also view the air quality index of particular area. In
light of characterizing and grouping the huge unique occasions, this framework
investigations the traveler stream dispersion qualities of enormous extraordinary
occasions, considers the spatial and worldly circulation of street traffic stream
36
encompassing the occasion regions additionally discover traffic of specific regions.
A description of all data structures including internal, global, and temporary data
structures, database design , file formats.
Data structures that are passed among components the software are described. The
java.sql package defines an interface called Java.sql.Driver that makes to be implemented
by all the JDBC drivers and a class called java.sql.DriverManager that acts as the
interface to the database clients for performing tasks like connecting to external resource
managers, and setting log streams. When a JDBC client requests the DriverManager to
make a connection to an external resource manager, it delegates the task to an appropriate
driver class implemented by the JDBC driver provided either by the resource manager
vendor or a third party.
37
7.3.2 Global data structure
The only kind of data available globally to the whole system is the database itself stored
in Microsoft Access. After the JDBC connection any data stored can be fetched, updated,
or deleted.
As data is being stored in a DBM system all the intermediate data it being stored by the
DBMS by the application. Hence no intermediate files or data structures are used.
MySQL MySQL, the most popular Open Source SQL database management system, is
developed, distributed, and supported by Oracle Corporation. The MySQL Web site
(http://www.mysql.com/) provides the latest information about MySQL software.
38
are linked using connectors.
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed. So deployment diagrams are used
to describe the static deployment view of a system. Deployment diagrams consist of
nodes and their relationships.
39
CHAPTER 8
PROJECT IMPLEMENTATION
40
8.1 Tools and Technologies Used
HARDWARE REQUIREMENTS:
• RAM - 2 GB(min)
SOFTWARE REQUIREMENTS:
• IDE : Eclipes
• Database : MYSQL
Input:- Search traffic Place query or Search traffic related any query.
Process:-
• Step 1: The target crime query document text is tokenized and individual words
are stored in array.
• Step 3: The stop word is compared to target text in form of array using sequential
search technique.
• Step 4: If it matches, the word in array is removed , and the comparison is continued
till length of array.
41
• Step 5: After removal of stopword completely, another stopword is read from
stopword list and again algorithm follows step 2. The algorithm runs continuously
until all the stopwords are compared.
• Step 6: Resultant text devoid of stopwords is displayed, also required statistics like
stopword removed, no. of stopwords removed from target text, total count of words in
target text, count of words in resultant text, individual stop word count found in target
text is displayed.i.e. places information is displayed or traffic information is displayed.
Process
nk = no. of times word occurred with the specified class Vocabulary = size Procedure
Steps:
• Calculate p(wk/vj) = nk/n i.e. the probability of word for the given class .
This algorithm is used for shortest route on map for recommendations purpose.
42
• Give Longitude and latitude of source and destination
Verification and validation are independent procedures that are used together for
checking that a product, service, or system meets requirements and specifications and
that it fulfills its intended purpose. These are critical components of a quality
management system such as ISO 9000. The words verification and validation are
sometimes preceded with independent, indicating that the verification and validation is
to be performed by a disinterested third party. Independent verification and validation
can be abbreviated as IV and V.
Validation : The assurance that system meets the needs of the customer and other
identified stakeholders. It often involves acceptance and suitability with external
customers. Contrast with verification.
Verification : The evaluation of whether or not a product, service, or system com- plies
with a regulation, requirement, specification, or imposed condition. It is often an internal
process. Contrast with validation
1. Unit Testing • Unit testing concentrates verification on the smallest element of the
program – the module. Using the detailed design description important control paths are
tested to establish errors within the bounds of the module.
• In this system each sub module is tested individually as per the unit testing such as
campaign, lead, contact etc. are tested individually. Their input field validations are
tested.
2. Integration testing • Once all the individual units have been tested there is a need
to test how they were put together to ensure no data is lost across interface, one module
does not have an adverse impact on another and a function is not performed correctly.
After unit testing each and every sub module is tested with integrating each other.
• Functional Testing
• Functional testing is the testing to ensure that the specified functionality required in
the system requirements works. It falls under the class of black box testing.
43
3. System Testing • System testing is the testing to ensure that by putting the software
in different environments (e.g., Operating Systems) it still works. System testing is done
with full system implementation and environment. It falls under the class of black box
testing.
4. Stress Testing • Stress testing is the testing to evaluate how system behaves under
unfavorable conditions. Testing is conducted at beyond limits of the specifications. It
falls under the class of black box testing.
5. Performance Testing • Performance testing is the testing to assess the speed and
effectiveness of the system and to make sure it is generating results within a specified
time as in performance requirements. It falls under the class of black box testing.
7. Acceptance Testing • Acceptance testing is often done by the customer to ensure that
the delivered product meets the requirements and works as the customer expected. It falls
under the class of black box testing
8. System testing for the current system: • In this level of testing we are testing the
system as a whole after integrating all the main modules of the project. We are testing
whether system is giving correct output or not. All the modules were integrated and the
flow of information among different modules was checked. It was also checked that
whether the flow of data is as per the requirements or not. It was also checked that whether
any particular module is non-functioning or not i.e. once the integration is over each and
every module is functioning in its entirety or not.
44
Table 9.1: Test case for Checking the functionality of Login Button 1
Table 9.2: Test case for Checking the functionality of Login Button 2
45
Table 9.3: Test case for Checking the functionality of Registration Button 1
Table 9.4: Test case for Checking the functionality of Registration Button 2
Result:-Pass
Result:-Pass
Result:-Pass
Result:-Pass
Result:-Pass
46
6. Enter the case sensitive Mobile Number click on Submit button.
1. Enter the correct username and wrong password click on Submit button.
Result:-Pass
2. Enter the wrong username and correct password and click on Submit button.
Result:-Pass
3. Enter the correct username and password and click on Login button.
Result:-Pass
Result:-Pass
5. After login with valid credentials copy the URL and paste in anotherbrowser.
Result:-Pass
47
CHAPTER 10
48
10.1 CONCLUTION
The traffic flow in smart city is most popular issue in current days. Various kind of
peoples are faced issue of smart city road traffic, road accident such as congestions,
pollution, security issues .Due to this reasons, road traffic is increased day by day. To
solve existing problem, we developed new proposed system, in that can collect the raw
data of traffic flow as well as air quality index of different areas in smart city. After
collecting, analyzing, predict how much traffic increase in next few days or year and how
to control them. Based on defining and classifying the large special events, this system
analyzes the passenger flow distribution characteristics of large special events. In this
system predict area wise current traffic as well as future traffic and User also view real
time air quality in particular area system, suggest shortest distance route on the map.
• In future, predict the in urban as well as in rural area also we make android application
for traffic prediction.
49
ANNEXURE A
REFRENCES
Joe Lemieux , Yuan Ma, “Vehicle Speed Prediction using Deep Learning”Department of
Electrical and Computer Engineering,University of Michigan Dearborn, Mi USA. 2015.
Youness Riouali, Laila Benhlima, Slimane Bah “Petri net extension for traffic road
modelling” Mohammadia School of Engineers Mohammed V University of Rabat
AMIPS Morocco, Rabat 2016
Thomas Liebig, Nico Piatkowski, Christian Bockermann, and Katharina Morik. “Route
Planning with Real-Time Traffic Predictions.” TU Dortmund University, Dortmund,
Germany 2014
Shen, L., Liu, R., Yao, Z., Wu, W., amp; Yang, H. “Development of Dynamic Platoon
Dispersion Models for Predictive Traffic Signal Control.” IEEE Transactions on
Intelligent Transportation Systems,
1–10. 2018
50
ANNEXURE B
Aim:
To develop the problem under consideration and justify feasibility using concepts of
knowledge canvas and IDEA Matrix.
Problem Statement:
How to search the best result in the relevant and diversified images standings is a
challenge. i.e. problem occurs in image search on flicker. How to make the top ranked
result relevant and with diversity is challenging.A fundamental problem in the re-ranking
of images or texts according to the user search preferences.
Knowledge Canvas is one that depicts the knowledge forces and knowledge flow across
the organization and extended organizations’. It captures the current knowledge state and
knowledge forces in the environment. It tries to build bigger knowledge scenario for
projects. It helps to identify the knowledge opportunities, prospective knowledge partners
and knowledge losses. It is used to establish association among knowledge opportunities.
51
Table 10.1: Idea Matrix
Title:
1. Theory:
What is P?
What is N?
• ”N” in ”NP” refers to the fact that you are not bound by the normal way a computer
works, which is step-by-step. The ”N” actually stands for ”Non- deterministic”.
This means that you are dealing with an amazing kind of computer that can run
things simultaneously or could somehow guess the right way to do things, or
52
something like that. • So this ”N” computer can solve lots more problems in ”P”
time - for example it can just clone copies of itself when needed.
• So, programs that takes dramatically longer as the problem gets harder (i.e. not in
”P”) could be solved quickly on this amazing ”N” computer and so are in ”NP”.
• Thus ”NP” means ”we can solve it in polynomial time if we can break the normal
rules of step-by-step computing”.
What is NP?
”NP” means ”we can solve it in polynomial time if we can break the normal rules
of step-by-step computing”.
Solution: In the Feasibility Study stage, the assigned project is analyzed, then
information about the project participants is collected, and the requirements for the
system are gathered and analyzed. During the Feasibility Study stage, the project’s goals,
parameters and restraints are agreed and a conceptual problem solution is prepared. In
this system we can predict the traffic area according to previous traffic data and air
pollution data. In that we collect first traffic data as well as air quality index of pollution
of different area wise data ,analysis on that data and show traffic area season wise. Also
recommendation of route to user. All this procedure for searching relevant Traffic Areas
as well as air pollution of area is possible in real time, so this project is NP-Complete.
53
ANNEXURE B
TYPE OF TESTING
1. Unit Testing • Unit testing concentrates verification on the smallest element of the
program – the module. Using the detailed design description important control paths are
tested to establish errors within the bounds of the module.
• In this system each sub module is tested individually as per the unit testing such as
campaign, lead, contact etc. are tested individually. Their input field validations are
tested.
2. Integration testing • Once all the individual units have been tested there is a need to
test how they were put together to ensure no data is lost across interface, one module does
not have an adverse impact on another and a function is not performed correctly. After
unit testing each and every sub module is tested with integrating each other.
• Functional Testing
• Functional testing is the testing to ensure that the specified functionality required
in the system requirements works. It falls under the class of black box testing.
3. System Testing • System testing is the testing to ensure that by putting the software
in different environments (e.g., Operating Systems) it still works. System testing is done
with full system implementation and environment. It falls under the class of black box
testing.
4. Stress Testing • Stress testing is the testing to evaluate how system behaves under
unfavorable conditions. Testing is conducted at beyond limits of the specifications. It
falls under the class of black box testing.
5. Performance Testing • Performance testing is the testing to assess the speed and
effectiveness of the system and to make sure it is generating results within a specified
time as in performance requirements. It falls under the class of black box testing.
7. Acceptance Testing • Acceptance testing is often done by the customer to ensure that
the delivered product meets the requirements and works as the customer expected. It falls
under the class of black box testing
54
8. System testing for the current system: • In this level of testing we are testing the
system as a whole after integrating all the main modules of the project. We are testing
whether system is giving correct output or not. All the modules were integrated and the
flow of information among different modules was checked. It was also checked that
whether the flow of data is as per the requirements or not. It was also checked that whether
any particular module is non-functioning or not i.e. once the integration is over each and
every module is functioning in its entirety or not.
Table 10.2: Test case for Checking the functionality of Login Button 1
55
Table 10.3: Test case for Checking the functionality of Login Button 2
Table 10.4: Test case for Checking the functionality of Registration Button 1
56
Table 10.5: Test case for Checking the functionality of Registration Button 2
Result:-Pass
Result:-Pass
Result:-Pass
Result:-Pass
Result:-Pass
1. Enter the correct username and wrong password click on Submit button.
Result:-Pass
2. Enter the wrong username and correct password and click on Submit button.
57
Result:-Pass
3. Enter the correct username and password and click on Login button.
Result:-Pass
Result:-Pass
5. After login with valid credentials copy the URL and paste in anotherbrowser.
Result:-Pass
58
ANNEXURE D
PROJECT PLANNER
59
ANNEXURE E
1. Paper Title:
3. Paper accepted/rejected:
60
ANNEXURE F
PLAGIARISM REPORT
61