Big data analysis method based on smart cityTechnical Field
The invention relates to the technical field of big data, in particular to a big data analysis method based on a smart city.
Background
The smart city originates from the media field, and means that various information technologies or innovative concepts are utilized to communicate and integrate the system and service of the city, so as to improve the efficiency of resource application, optimize city management and service, and improve the quality of life of citizens.
Big data is a data set which cannot be captured, managed and processed by a conventional software tool within a certain time range, and is a massive, high-growth-rate and diversified information asset which can have stronger decision-making power, insight discovery power and flow optimization capability only by a new processing mode.
In the existing society, the development of smart cities has the following problems:
1. the travel is inconvenient due to urban traffic congestion, the urban congestion is mostly in rush hours and holidays on duty, the travel on holidays becomes a normal state along with the improvement of living standard, the existing traffic travel system can only predict the current road congestion situation at that time, and cannot predict the future road congestion situation, so that a user cannot confirm the travel of the user;
2. in the existing road traffic state, when fire-fighting vehicles, ambulance vehicles and police vehicles are on police or are rescued, the congestion of the road wastes much time, great troubles are brought to the rescue, and precious time is wasted;
3. a traveler cannot know whether a parking space is available at a destination or not, and usually needs to spend a lot of time waiting or searching for the parking space after the traveler goes to the destination;
therefore, a big data analysis system and a big data analysis method based on a smart city are urgently needed to solve the problems.
Disclosure of Invention
The invention aims to provide a big data analysis system and a big data analysis method based on a smart city, and aims to solve the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme: a big data analysis system based on a smart city comprises a data acquisition module, a control module, an instruction execution module, a remote communication module and a data storage module;
the data acquisition module is connected with the control module through a remote communication module, and the control module is respectively connected with the instruction execution module and the data storage module through the remote communication module;
the big data analysis system also comprises a client;
the client is connected with the data acquisition module and the control module through the remote communication module;
the client is a mobile device, for example: mobile phones, ipads, computers, etc.;
the client is used for displaying the calculation data of the whole system and controlling the whole system.
According to the technical scheme, the data acquisition module comprises a radar sensor, a rainfall sensor and a data uploading unit;
the radar sensor, the rainfall sensor and the data uploading unit are all connected with the control module through the remote communication module;
the radar sensor is installed at a traffic intersection and used for detecting traffic flow of roads in different time periods and analyzing the traffic flow as big data for development of a smart city, the rainfall sensor is also installed at the traffic intersection and used for detecting real-time rainfall of the roads and used as factors and variables influencing traffic flow of the traffic intersection, and the data uploading unit is used for connecting intelligent network equipment of the city and uploading relevant information based on construction of the smart city, for example: fire alarm information, accident site information, garage parking space allowance information and the like.
According to the technical scheme, the control module comprises a programmable controller, a data processing unit and a time recording unit;
the programmable controller is respectively connected with the data processing unit and the time recording unit, and is respectively connected with the instruction execution module and the data storage module through the remote communication module;
the programmable controller is used for programming control over the whole system and achieving intelligent control over the system, the programmable controller is further used for being connected with a third-party database and planning an optimal travel route for a travel vehicle, the data processing unit is used for processing and calculating a large amount of data collected by the data collecting module and processing and calculating a large amount of data stored in the data storage module, the time recording unit is used for recording time at any time and used as a basis for processing and calculating various items of the data processing unit, and the time recorded by the time recording unit is recorded as T.
According to the technical scheme, the remote communication module comprises a ZigBee communication unit, a wireless communication network and a GPS positioning unit;
the ZigBee communication unit is used for wireless communication between the data acquisition module and the control module and between the control module and the instruction execution module and the data storage module, the wireless communication network is used for wireless communication between the control module and the client and between the client and the data acquisition module, and the GPS positioning unit is installed on a fire truck, an ambulance and a police car and used for positioning the real-time positions of the fire truck, the ambulance and the police car.
According to the technical scheme, the instruction execution module comprises a voice broadcasting unit, a public address loudspeaker and a traffic light controller;
the voice broadcasting unit is connected with the programmable controller, the voice broadcasting unit is connected with the loudspeaker, and the traffic light controller is connected with the programmable controller;
the voice broadcast unit is installed on the road both sides for voice broadcast reminds the vehicle on the road to notice and dodge a fast path of department for fire vehicle, ambulance and alert with the vehicle, for example: the public address speaker is used for amplifying voice of the voice broadcasting unit, so that vehicles running on the road can be reminded of avoiding with larger sound, the traffic light controller is used for controlling the traffic light when the emergency vehicles arrive at the intersection, so that the emergency vehicles can pass through the intersection quickly and safely, the probability of traffic accidents is reduced, and after the emergency vehicles drive away from the intersection, the traffic light controller controls the traffic light to recover to be normal.
According to the technical scheme, the data storage module comprises a data storage unit, a storage database and a data retrieval unit;
the data storage unit is connected with the programmable controller, the output end of the data storage unit is connected with the input end of the storage database, the output end of the storage database is connected with the input end of the data calling unit, and the output end of the data calling unit is connected with the input end of the programmable controller;
the data storage unit is arranged in entering the storage database with the data storage after the data acquisition module is acquired and processed through the control module, is convenient for later retrieval and use, the storage database is used for storing and saving the data acquired by the data acquisition module and processed through the control module, and the data retrieval unit is used for retrieving and applying the data in the storage database, so that the big data stored in the storage database can be utilized to analyze and process the construction of the smart city.
A big data analysis method based on a smart city comprises the following steps:
s1, collecting and uploading relevant data by using a data collection module;
s2, calculating and processing the acquired and uploaded data by using a control module;
s3, transmitting the calculation and processing results to the client for display by using the remote communication module;
s4, calculating and planning an optimal emergency vehicle driving route by using the data processing unit;
s5, the control module transmits the calculation and planning results to the instruction execution module by using the ZigBee communication unit;
and S6, the control module transmits all data to the data storage module for storage through the ZigBee communication unit.
According to the above technical solution, in the steps S1-S6, the data acquisition module utilizes a radar sensor to detect the traffic flow at the intersection in real time, the real-time traffic flow at the intersection detected by the radar sensor is X, the rainfall sensor detects the rainfall at the intersection in real time, the real-time rainfall at the intersection detected by the rainfall sensor is Y, the data upload module uploads the parking space allowance Z of each garage in real time, the client uploads the time and place of the customer trip, and the data upload module is further configured to upload the trip information of the customer and the information of the emergency vehicle, for example: after the data acquisition module acquires relevant information, the control module calculates and processes data acquired by the data acquisition module by using an algorithm, and transmits a calculation and processing result to a client for display through a remote communication module so as to be known by a client;
the control module is connected with a third-party database and calculates and plans an optimal driving route according to the information of the help-seeking emergency vehicle uploaded by the data uploading unit, the control module transmits the information to the instruction execution module through the remote communication module according to the optimal driving route, the instruction execution module operates according to the information transmitted by the control module, and the control module recycles the remote communication module to store all data into the storage database by the data storage unit, so that the later-stage calling and using are facilitated.
According to the technical scheme, the travel time input by the client is t, the distance between the departure place and the destination of the client is L, and the data retrieval module retrieves the corresponding route and each intersection traffic flow set Q at the time point t past every day from the storage database according to the travel route planned by the control module1={X1,X2,X3,…,Xn}、Q2={X11,X22,X23,…,X2n}、…、Qn={Xn1、Xn2、Xn3、…、XnnGet the set Qi ═ X with the maximum traffic flow from iti1、Xi2、Xi3、…、XinCalculating according to the formula:
wherein
Average traffic flow at the time point of the set;
when in use
When the time is longer than the preset time, indicating that the road traffic is relatively congested at the time point t, and not suggesting a trip;
when in use
When the time is longer than the preset time, the road traffic condition at the time point t is good, the trip is recommended, and the time average time spent on the route at the time point is called from the storage database by using the data calling unit
The data retrieval unit retrieves from the storage database the data of the data to be retrieved every year or every month or every week
The garage parking space allowance information of time forms a set P ═ Z
1,Z
2,Z
3,…,Z
n}
At this time, according to the formula:
wherein
Indicating in customer travel
At the time point, the destination corresponds to the parking space allowance of the garage;
when in use
When the parking space allowance of the destination garage is insufficient, the trip is not suggested;
when in use
And (5) indicating that the parking space allowance of the destination garage is sufficient, and suggesting a trip.
According to the technical scheme, the data uploading unit uploads help seeking information of emergency vehicles, the control module plans an optimal driving route according to the information and third-party data, the control module transmits signals to the instruction execution module on the driving route through the ZigBee communication unit, the voice broadcasting unit and the loudspeaker are used for voice broadcasting, and the GPS positioning unit positions the emergency vehicles;
when the distance S between the emergency vehicle and the intersection is less than or equal to C, the traffic light controller controls all the traffic indicator lights of the intersection to light red lights;
when the distance S between the emergency vehicle and the intersection is larger than C, the traffic light controller controls the intersection traffic indicating light to return to normal work;
the emergency vehicle can quickly achieve the rescue phenomenon to carry out related work.
Compared with the prior art, the invention has the beneficial effects that:
1. according to the setting of the user on the travel time point, the data calling unit calls data from the storage database and calculates by using a formula, the congestion condition of the road at the set time point can be accurately predicted, corresponding suggestions are given, the method is helpful for the user to select whether to travel at the time point on the same day according to the congestion condition of the road, the travel can be effectively prevented from encountering traffic congestion, the congestion condition of the road can be effectively improved, the user can select to shunt the travel according to the self-help condition, and the method is favorable for the construction of a smart city.
2. The data uploading unit is used for uploading the parking space allowance of the garage in real time, the parking space allowance of the destination garage is confirmed in real time according to the destination set by the user, the parking space allowance of the garage is confirmed according to the arrival time of the user stroke, the user can know whether the parking space can be supplied for parking, the problem that the user does not have the parking space to cause time waste when arriving at the destination can be effectively avoided, the time spent by the user for searching the parking space and waiting for the parking space is reduced, and the trip experience of the user can be effectively improved.
3. Be provided with GPS positioning unit and instruction execution module, utilize the position of GPS positioning unit to the emergent vehicle to fix a position, can help emergent vehicle when being close to the crossing, traffic lights controller control traffic light bright red light, help the timely quick crossing of emergent vehicle, and simultaneously, the voice broadcast unit and the public address speaker that utilize instruction execution module, can be effectual the vehicle that goes on the warning road in time dodge out a green passageway, supply with emergent vehicle and use, can effectually shorten the time that emergent vehicle goes to the rescue place and spend, can win valuable time for the rescue.
Drawings
FIG. 1 is a schematic diagram of a big data analysis system module composition based on a smart city according to the present invention;
FIG. 2 is a schematic diagram of a smart city-based big data analysis system module connection structure according to the present invention;
FIG. 3 is a schematic diagram illustrating steps of a big data analysis method based on a smart city according to the present invention;
FIG. 4 is a schematic view illustrating a road congestion analysis process based on a big data analysis method for smart cities according to the present invention;
fig. 5 is a schematic flow chart of emergency vehicle avoidance by a big data analysis method based on a smart city.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1-2, a big data analysis system based on a smart city comprises a data acquisition module, a control module, an instruction execution module, a remote communication module and a data storage module;
the data acquisition module is connected with the control module through a remote communication module, and the control module is respectively connected with the instruction execution module and the data storage module through the remote communication module;
the big data analysis system also comprises a client, which realizes the understanding and control of the client to the whole system;
the client is connected with the data acquisition module and the control module through the remote communication module;
the client is a mobile device, for example: mobile phones, ipads, computers, etc.;
the client is used for displaying the calculation data of the whole system and controlling the whole system.
The data acquisition module comprises a radar sensor, a rainfall sensor and a data uploading unit;
the radar sensor, the rainfall sensor and the data uploading unit are all connected with the control module through the remote communication module;
the radar sensor is installed at a traffic intersection and used for detecting traffic flow of roads in different time periods and analyzing the traffic flow as big data for development of a smart city, the rainfall sensor is also installed at the traffic intersection and used for detecting real-time rainfall of the roads and used as factors and variables influencing traffic flow of the traffic intersection, and the data uploading unit is used for connecting intelligent network equipment of the city and uploading relevant information based on construction of the smart city, for example: fire alarm information, accident site information, garage parking space allowance information and the like.
The control module comprises a programmable controller, a data processing unit and a time recording unit;
the programmable controller is respectively connected with the data processing unit and the time recording unit, and is respectively connected with the instruction execution module and the data storage module through the remote communication module;
the programmable controller is used for programming control over the whole system and achieving intelligent control over the system, the programmable controller is further used for being connected with a third-party database and planning an optimal travel route for a travel vehicle, the data processing unit is used for processing and calculating a large amount of data collected by the data collecting module and processing and calculating a large amount of data stored in the data storage module, the time recording unit is used for recording time at any time and used as a basis for processing and calculating various items of the data processing unit, and the time recorded by the time recording unit is recorded as T.
The remote communication module comprises a ZigBee communication unit, a wireless communication network and a GPS positioning unit;
the ZigBee communication unit is used for wireless communication between the data acquisition module and the control module and between the control module and the instruction execution module and the data storage module, the wireless communication network is used for wireless communication between the control module and the client and between the client and the data acquisition module, and the GPS positioning unit is installed on a fire truck, an ambulance and a police car and used for positioning the real-time positions of the fire truck, the ambulance and the police car.
The instruction execution module comprises a voice broadcasting unit, a public address loudspeaker and a traffic light controller;
the voice broadcasting unit is connected with the programmable controller, the voice broadcasting unit is connected with the loudspeaker, and the traffic light controller is connected with the programmable controller;
the voice broadcast unit is installed on the road both sides for voice broadcast reminds the vehicle on the road to notice and dodge a fast path of department for fire vehicle, ambulance and alert with the vehicle, for example: the public address speaker is used for amplifying voice of the voice broadcasting unit, so that vehicles running on the road can be reminded of avoiding with larger sound, the traffic light controller is used for controlling the traffic light when the emergency vehicles arrive at the intersection, so that the emergency vehicles can pass through the intersection quickly and safely, the probability of traffic accidents is reduced, and after the emergency vehicles drive away from the intersection, the traffic light controller controls the traffic light to recover to be normal.
The data storage module comprises a data storage unit, a storage database and a data retrieval unit;
the data storage unit is connected with the programmable controller, the output end of the data storage unit is connected with the input end of the storage database, the output end of the storage database is connected with the input end of the data calling unit, and the output end of the data calling unit is connected with the input end of the programmable controller;
the data storage unit is arranged in entering the storage database with the data storage after the data acquisition module is acquired and processed through the control module, is convenient for later retrieval and use, the storage database is used for storing and saving the data acquired by the data acquisition module and processed through the control module, and the data retrieval unit is used for retrieving and applying the data in the storage database, so that the big data stored in the storage database can be utilized to analyze and process the construction of the smart city.
As shown in fig. 3 to 5, a big data analysis method based on a smart city includes the following steps:
s1, collecting and uploading relevant data by using a data collection module;
s2, calculating and processing the acquired and uploaded data by using a control module;
s3, transmitting the calculation and processing results to the client for display by using the remote communication module;
s4, calculating and planning an optimal emergency vehicle driving route by using the data processing unit;
s5, the control module transmits the calculation and planning results to the instruction execution module by using the ZigBee communication unit;
and S6, the control module transmits all data to the data storage module for storage through the ZigBee communication unit.
In the steps S1-S6, the data acquisition module detects the traffic flow at the intersection in real time by using the radar sensor, the real-time traffic flow at the intersection detected by the radar sensor is X, the rainfall sensor detects the rainfall at the intersection in real time, the real-time rainfall at the intersection detected by the rainfall sensor is Y, the data upload module uploads the parking space allowance Z of each garage in real time, the client uploads the time and place of the trip of the client, and the data upload module is further used for uploading the trip information of the user and the information of the help-seeking emergency vehicle, for example: after the data acquisition module acquires relevant information, the control module calculates and processes data acquired by the data acquisition module by using an algorithm, and transmits a calculation and processing result to a client for display through a remote communication module so as to be known by a client;
the control module is connected with a third-party database and calculates and plans an optimal driving route according to the information of the help-seeking emergency vehicle uploaded by the data uploading unit, the control module transmits the information to the instruction execution module through the remote communication module according to the optimal driving route, the instruction execution module operates according to the information transmitted by the control module, and the control module recycles the remote communication module to store all data into the storage database by the data storage unit, so that the later-stage calling and using are facilitated.
The client uses the travel time input by the client as t, the distance between the departure place and the destination of the client is L, and the data retrieval module retrieves the corresponding route and each intersection traffic flow set Q corresponding to the time point t per day from the storage database according to the travel route planned by the control module1={X1,X2,X3,…,Xn}、Q2={X11,X22,X23,…,X2n}、…、Qn={Xn1、Xn2、Xn3、…、XnnGet the set Qi ═ X with the maximum traffic flow from iti1、Xi2、Xi3、…、XinCalculating, wherein the set with the maximum traffic flow represents the most congested intersection, and according to a formula:
wherein
Average traffic flow at the time point of the set;
when in use
When the time is longer than the preset time, indicating that the road traffic is relatively congested at the time point t, and not suggesting a trip;
when in use
When the time is longer than the preset time, the road traffic condition at the time point t is good, the trip is recommended, and the time average time spent on the route at the time point is called from the storage database by using the data calling unit
The data retrieval unit retrieves from the storage database the data of the data to be retrieved every year or every month or every week
The garage parking space allowance information of time forms a set P ═ Z
1,Z
2,Z
3,…,Z
n}
At this time, according to the formula:
wherein
Indicating in customer travel
At the time point, the destination corresponds to the parking space allowance of the garage;
when in use
When the parking space allowance of the destination garage is insufficient, the trip is not suggested;
when in use
And (5) indicating that the parking space allowance of the destination garage is sufficient, and suggesting a trip.
The data uploading unit uploads help seeking information of emergency vehicles, the control module plans an optimal driving route according to the information and third-party data, the control module transmits signals to the instruction execution module on the driving route through the ZigBee communication unit, the voice broadcasting unit and the loudspeaker carry out voice broadcasting, and the GPS positioning unit positions the positions of the emergency vehicles;
when the distance S between the emergency vehicle and the intersection is less than or equal to C, the traffic light controller controls all the traffic indicator lights of the intersection to light red lights; when the distance S between the emergency vehicle and the intersection is larger than C, the traffic light controller controls the intersection traffic indicating light to return to normal work;
the emergency vehicle can quickly achieve the rescue phenomenon to carry out related work.
The first embodiment is as follows:
the client utilizes the travel time t input by the client to be nine am of 10 months and 10 months in 2019, the distance between the departure place and the destination of the client is 20km, and the data calling module calls the corresponding route from the storage database according to the travel route planned by the control module and each intersection traffic flow set Q with the corresponding time t of each day being nine am1={X1,X2,X3,…,Xn}、Q2={X11,X22,X23,…,X2n}、…、Qn={Xn1、Xn2、Xn3、…、XnnAnd taking out a set Qi with the maximum traffic flow from the set Qi, namely {120, 135, 128, 116 and 105} to calculate, according to the formula:
wherein
Average traffic flow at the time point of the set;
when the time is longer than the preset time, indicating that the road traffic is relatively congested at the time point t, and not suggesting a trip;
setting the C to be 100m, connecting the GPS positioning unit with a third party map database, and displaying through a client; c is equal to or less than 100m, and the traffic light controller controls all traffic indicator lights at the intersection to light red lights;
the distance S between the emergency vehicle and the intersection is larger than C and 100m, and the traffic light controller controls the intersection traffic indicating light to return to normal work;
the emergency vehicle can quickly achieve the rescue phenomenon to carry out related work.
Example two:
the client utilizes the travel time t input by the client to be nine am of 10 months and 10 months in 2019, the distance between the departure place and the destination of the client is 20km, and the data calling module calls the corresponding route from the storage database according to the travel route planned by the control module and each intersection traffic flow set Q with the corresponding time t of each day being nine am1={X1,X2,X3,…,Xn}、Q2={X11,X22,X23,…,X2n}、…、Qn={Xn1、Xn2、Xn3、…、XnnAnd taking out a set Qi with the maximum traffic flow from the set Qi, namely {96, 105, 111, 85 and 88} to calculate, according to the formula:
wherein
Average traffic flow at the time point of the set;
indicating that the road traffic condition is good at the time point t, recommending the trip, and utilizing the data retrieval unit to retrieve the time average time spent on the route at the time point from the storage database
Is 25 min; the data retrieval unit retrieves from the storage database the data of the data to be retrieved every year or every month or every week
The garage parking space allowance information of time forms a set P ═ {12,15,6,12,10}
At this time, according to the formula:
wherein
Indicating in customer travel
At the time point, the destination corresponds to the parking space allowance of the garage;
and indicating that the parking space allowance of the destination garage is sufficient, and suggesting a trip.
Setting the C to be 100m, connecting the GPS positioning unit with a third party map database, and displaying through a client;
c is equal to or less than 100m, and the traffic light controller controls all traffic indicator lights at the intersection to light red lights;
the distance S between the emergency vehicle and the intersection is larger than C and 100m, and the traffic light controller controls the intersection traffic indicating light to return to normal work;
the emergency vehicle can quickly achieve the rescue phenomenon to carry out related work.
Example three:
the client utilizes the travel time t input by the client to be nine am of 10 months and 10 months in 2019, the distance between the departure place and the destination of the client is 20km, and the data calling module calls the corresponding route from the storage database according to the travel route planned by the control module and each intersection traffic flow set Q with the corresponding time t of each day being nine am1={X1,X2,X3,…,Xn}、Q2={X11,X22,X23,…,X2n}、…、Qn={Xn1、Xn2、Xn3、…、XnnAnd taking out a set Qi with the maximum traffic flow from the set Qi, namely {96, 105, 111, 85 and 88} to calculate, according to the formula:
wherein
Average traffic flow at the time point of the set;
indicating a point in time tThe road traffic condition is good, the travel is recommended, and the average time spent on the route at the time point is called from the storage database by the data calling unit
Is 25 min; the data retrieval unit retrieves from the storage database the data of the data to be retrieved every year or every month or every week
The garage parking space allowance information of time forms a set P ═ {6,3,6,7,2}
At this time, according to the formula:
wherein
Indicating in customer travel
At the time point, the destination corresponds to the parking space allowance of the garage;
the parking space allowance of the destination garage is not enough, and the trip is not suggested.
Setting the C to be 100m, connecting the GPS positioning unit with a third party map database, and displaying through a client;
c is equal to or less than 100m, and the traffic light controller controls all traffic indicator lights at the intersection to light red lights;
the distance S between the emergency vehicle and the intersection is larger than C and 100m, and the traffic light controller controls the intersection traffic indicating light to return to normal work;
the emergency vehicle can quickly achieve the rescue phenomenon to carry out related work.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.