[go: up one dir, main page]

CN111083728B - Scenic spot real-time load monitoring method and system based on space-time big data - Google Patents

Scenic spot real-time load monitoring method and system based on space-time big data Download PDF

Info

Publication number
CN111083728B
CN111083728B CN201911355139.7A CN201911355139A CN111083728B CN 111083728 B CN111083728 B CN 111083728B CN 201911355139 A CN201911355139 A CN 201911355139A CN 111083728 B CN111083728 B CN 111083728B
Authority
CN
China
Prior art keywords
scenic spot
data
passenger flow
time
weight
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201911355139.7A
Other languages
Chinese (zh)
Other versions
CN111083728A (en
Inventor
江维
邹草心
詹瑾瑜
李响
何杰
李博智
蔡玉舒
周巧瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
CETC Big Data Research Institute Co Ltd
Original Assignee
University of Electronic Science and Technology of China
CETC Big Data Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China, CETC Big Data Research Institute Co Ltd filed Critical University of Electronic Science and Technology of China
Priority to CN201911355139.7A priority Critical patent/CN111083728B/en
Publication of CN111083728A publication Critical patent/CN111083728A/en
Application granted granted Critical
Publication of CN111083728B publication Critical patent/CN111083728B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Economics (AREA)
  • Primary Health Care (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于时空大数据的景区实时负荷监控方法及系统,方法包括以下步骤:S1、获取景区客流量数据;S2、进行景区地图分块;S3、对客流数据进行区域划分;S4、参考景区过往的真实客流数据以及最大负荷数值,为景区的每个景点设置一个游客载流上限标签,记为tValue,并将负荷阈值设置为游客载流量上限*80%;S5、对步骤S1获取的客流量数据进行处理,判断景点客流量是否超负荷;S6、采用基于百度Echarts的景区实时客流分布密度热力图展示当前客流量信息。本发明能够根据景区内各景点最大游客承载能力,为景区提供超负荷短信预警,实时负荷状态监控。

Figure 201911355139

The invention discloses a real-time load monitoring method and system for a scenic spot based on spatiotemporal big data. The method includes the following steps: S1, acquiring passenger flow data of the scenic spot; S2, dividing the scenic spot map into blocks; S3, dividing the passenger flow data into regions; S4 , referring to the past real passenger flow data and the maximum load value of the scenic spot, set a tourist current carrying upper limit label for each scenic spot in the scenic spot, which is recorded as tValue, and set the load threshold to the tourist carrying capacity upper limit * 80%; S5. For step S1 The obtained passenger flow data is processed to determine whether the tourist flow of the scenic spot is overloaded; S6, the real-time passenger flow distribution density heat map based on Baidu Echarts is used to display the current passenger flow information. According to the maximum tourist carrying capacity of each scenic spot in the scenic spot, the invention can provide the scenic spot with overload short message warning and real-time load state monitoring.

Figure 201911355139

Description

Scenic spot real-time load monitoring method and system based on space-time big data
Technical Field
The invention belongs to the technical application field of space-time big data, and particularly relates to a scenic spot real-time load monitoring method and system based on space-time big data.
Background
The integration of the mobile Internet of things and the Internet of things realizes that people flow analysis in tourist attractions is gradually and widely applied by utilizing multilayer technical means, realizes real-time statistics and monitoring of tourist flow in the attractions, is convenient for managers to manage, control and dredge the passenger flow, effectively avoids safety events, provides accurate, scientific, detailed and used tourist data and information service for tourism industry managers, and improves management and service levels of the tourism industry.
Although monitoring equipment and people stream alarm devices are also installed in part of scenic spots, effective real-time performance cannot be achieved, specific scenic spots in the scenic spots cannot be achieved, real-time statistics work of tourists is relatively delayed, and when the scenic spots in the scenic spots reach load values, managers cannot obtain emergency data at the first time, evacuation work is conducted on specific scenic spots in a targeted mode, and accordingly tourism experience of the tourists is influenced.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a scenic spot real-time load monitoring method and system which can provide overload short message early warning for scenic spots according to the maximum tourist bearing capacity of each scenic spot in the scenic spot and monitor real-time load states based on space-time big data.
The purpose of the invention is realized by the following technical scheme: a scenic spot real-time load monitoring method based on space-time big data comprises the following steps:
s1, obtaining the scenic spot passenger flow volume data by adopting the following two modes: firstly, based on a video analysis principle, carrying out tourist quantity statistics by adopting a head and shoulder recognition mode, and capturing the number of tourists in the current scenic spot; secondly, based on a WiFi mode, network information is covered in the scenic spot, and when the tourist is connected with open WiFi, the network information is counted to a database;
s2, carrying out scenic spot map partitioning;
s3, carrying out region division on the passenger flow data;
s4, referring to past real passenger flow data and a maximum load value of a scenic spot, setting a tourist current carrying upper limit label for each scenic spot of the scenic spot, recording the tourist current carrying upper limit label as tValue, setting a load threshold as 80% of the tourist current carrying upper limit, and simultaneously warehousing and storing;
s5, processing the passenger flow data obtained in the step S1, and judging whether the scenic spot passenger flow is overloaded or not;
and S6, displaying the current passenger flow information by adopting a scenic spot real-time passenger flow distribution density thermodynamic diagram based on the Baidu Echarts.
Further, the step S2 includes the following sub-steps:
s21, calculating longitude and latitude binary codes of the scenic spots: the longitude interval of the earth is [ -180,180], and the latitude interval is [ -90,90 ];
firstly, latitude codes are calculated: dividing the interval of [ -90,90] into two intervals of [ -90,0) and [0,90], judging the interval where the latitude of the scenic spot is located, recording the interval as 0 if the scenic spot is located in the left interval, and recording the interval as 1 if the scenic spot is located in the right interval;
continuously dividing the interval of the scenic spot into a left interval and a right interval, judging the interval of the latitude of the scenic spot, recording as 0 if the scenic spot is in the left interval, and recording as 1 if the scenic spot is in the right interval;
sequentially carrying out division and judgment operation on the intervals of the scenic spots to obtain eight-digit binary codes of the latitude of the scenic spots;
obtaining eight-digit binary codes of the longitudes of the scenic spots by adopting the same dividing and judging operations as latitude codes;
s22, generating a GeoHash code, recombining binary strings of longitude and latitude according to the rules of longitude on even digits and latitude on odd digits, and generating a 16-digit new binary code; then, converting the 16-bit binary code into a decimal value, and searching a corresponding base32 code to obtain a GeoHash code;
and S23, repeating the operations of the steps S21 and S22 to obtain the GeoHash code of each sight spot in the sight area.
Further, the step S3 includes the following sub-steps:
s31, dividing the real-time passenger flow data acquired in the step S1 according to the one-to-one correspondence of time and space: dividing the time data respectively in the forms of yyyy-MM-dd and hh: MM: ss to respectively obtain time character strings of year, month and day and time, minute and second character strings; performing GeoHash coding processing on the spatial data, judging whether the prefix of the GeoHash character string is the same as the GeoHash code of each scenic spot obtained in the step S2, and judging the same passenger flow data point to be located in the corresponding scenic spot;
and S32, recombining the processed year, month, day, hour, minute and second time character string and the GeoHash code according to the yyy-MM-dd + GeoHash code + hh: MM: ss form to obtain a plurality of rectangular areas.
Further, the specific implementation method of step S5 is as follows: the method adopts real-time passenger flow statistics based on Spark Streaming to process passenger flow volume data, and comprises the following specific steps:
s51, adding a staff list and storing the information of the managers in the scenic spot, wherein the managers are responsible for each scenic spot;
s52, adding a passenger flow number variable count and a weight variable weight for each sight spot, counting the count values of each batch of data in different sight spots, and calculating the weight value:
weight(i)=count(i)/(count(1)+count(2)+…+count(n))
i is 1,2, …, n, n represents the total number of sights;
s53, when the count (i) is more than or equal to tValue, namely when the passenger flow of the scenic spot i exceeds the set scenic spot passenger load threshold value, the tourist is not suitable to be accommodated, the database inquires the contact information of the scenic spot person in charge of the i, and sends a warning message to the scenic spot management personnel.
Further, the step S6 includes the following sub-steps:
s61, adopting the result flow obtained in the step S5 as a data source of the thermodynamic diagram; defining longitude and latitude as position information, weight as weight, wherein the data format of the thermodynamic diagram consists of (lat, lng, weight), lat represents latitude, and lng represents longitude;
s62, filling data on the map based on canvas;
s63, calculating the transparency value alpha of each data point on the map according to the weight value weight of each data point obtained in the step S5:
weight Min ═ alpha [0], weight Max ═ alpha [1], and the remaining alpha values are calculated as:
alpha[i]=(weight[i]-weight[min])/(weight[max]-weight[min]);
s64, calling a getImageData () method provided by canvas to obtain the gray value of each pixel point on the canvas, thereby obtaining the color of the corresponding position in the color ribbon.
The invention also discloses a scenic spot real-time load monitoring system based on the space-time big data, which comprises a data source acquisition module, a scenic spot data analysis module, a passenger flow load monitoring module and a result visualization module, wherein the scenic spot data analysis module comprises a scenic spot map division submodule and a passenger flow data division submodule;
the data source acquisition module is used for acquiring accurate GIS information of each scenic spot in the scenic spot by calling a third party API; obtaining GPS data of the tourists based on free WiFi provided by the scenic spot; based on a video analysis principle, acquiring the amount of tourists in a head and shoulder recognition mode;
the scenic spot map dividing submodule is used for optimizing the scenic spot GIS data: partitioning a map of a scenic spot according to positions of the scenic spots;
the passenger flow data division submodule is used for optimizing the tourist GPS data: carrying out region division on the tourist GPS data;
the passenger flow load monitoring module is used for adding a passenger flow threshold label to each scenic spot, comparing the current passenger flow with a threshold value, and sending out a warning when the passenger flow exceeds the threshold value; adding a scenic spot and scenic spot management personnel list, storing the contact information of each scenic spot principal, and contacting the scenic spot principal when a load warning occurs; adding a weight value to the passenger flow data passing through each scenic spot, and calculating the weight value in real time;
and the result visualization module is used for defining the data format of the thermodynamic diagram, filling data on the map based on canvas, calculating a corresponding transparent value alpha according to the weight of each data point, and then drawing the thermodynamic diagram on the map.
The invention has the beneficial effects that: the monitoring method can provide overload short message early warning for the scenic spots and monitor the load state in real time according to the maximum tourist bearing capacity of each scenic spot in the scenic spots. On one hand, under the condition that scenic spots bear overload, early warning short messages are issued to scenic spot management personnel to avoid scenic spot overload reception; on the other hand, by drawing a scenic spot number distribution map, the population density distribution and the tourist behavior characteristics of each scenic spot in different time periods in the scenic spot are mastered, the number of tourists in the scenic spot is predicted, and the workers can conveniently make overload measures of all scenic spots in advance.
Drawings
FIG. 1 is a flow chart of a scenic spot real-time load monitoring method based on space-time big data according to the present invention;
FIG. 2 is a flow chart of traffic data partitioning in a scenic spot;
FIG. 3 is a schematic structural diagram of a scenic spot real-time load monitoring system based on space-time big data.
Detailed Description
The technical scheme of the invention is further explained by combining the drawings and the specific embodiment.
As shown in fig. 1, the method for monitoring scenic spot real-time load based on space-time big data of the present invention includes the following steps:
s1, obtaining the scenic spot passenger flow volume data by adopting the following two modes: firstly, based on a video analysis principle (a passenger flow monitoring camera is arranged at a gate of a scenic spot and at the position of each scenic spot channel), carrying out tourist quantity statistics by adopting a head and shoulder identification mode, and capturing the number of tourists in the current scenic spot; secondly, based on a WiFi mode, network information is covered in the scenic spot, and when the tourist is connected with open WiFi, the network information is counted to a database;
s2, carrying out scenic spot map partitioning; the most intuitive way to inquire the number of individuals near a scenic spot is to look up a table in a database, calculate and inquire data within xx kilometers away from the scenic spot, screen out and return the data to a client. This approach requires the calculation of a relative distance for each entry in the entire table, which is time consuming. Therefore, the scenic region is considered to be divided into regions, so that even if the relative distance is calculated once for each piece of data in each region, it is calculated once more quickly than in the previous full table. The map partitioning process is a process of adding an index, a proper index is added to points on the map, the points can be sorted, and the method similar to binary search can be used for quickly inquiring and counting the passenger capacity of a scenic spot.
The method specifically comprises the following substeps:
s21, calculating longitude and latitude binary codes of the scenic spots: the longitude interval of the earth is [ -180,180], and the latitude interval is [ -90,90 ];
firstly, latitude codes are calculated: dividing the interval of [ -90,90] into two intervals of [ -90,0) and [0,90], judging the interval where the latitude of the scenic spot is located, recording the interval as 0 if the scenic spot is located in the left interval, and recording the interval as 1 if the scenic spot is located in the right interval;
continuously dividing the interval of the scenic spot into a left interval and a right interval, judging the interval of the latitude of the scenic spot, recording as 0 if the scenic spot is in the left interval, and recording as 1 if the scenic spot is in the right interval;
sequentially carrying out division and judgment operation on the intervals of the scenic spots to obtain eight-digit binary codes of the latitude of the scenic spots;
obtaining eight-digit binary codes of the longitudes of the scenic spots by adopting the same dividing and judging operations as latitude codes;
taking the Bifeng isthmic region of Yaan city, Sichuan as an example, the longitude of the Bifeng isthmic region is 116.413384, and the latitude is 39.910925. Dividing the interval between-90 and 90 into about-90 and 0 and 90, determining 39.910925 as right interval and marking as 1; dividing [0,90] into [0,45 ], and [45,90] into a left interval and a right interval, and determining 39.910925 as a left zone interval which is marked as 0; this process is recursed in turn, resulting in a binary result of dimension 10111000; similarly, the longitude binary code of the peck isthmus scene area is 11010110, as shown in table one.
Watch 1
Figure BDA0002335699080000041
Figure BDA0002335699080000051
S22, generating a GeoHash code, recombining binary strings of longitude and latitude according to the rules of longitude on even-numbered positions and latitude on odd-numbered positions, and generating a 16-bit new binary code: the binary code of the pecan isthmus is 1110011101101000; then, converting the 16-bit binary code into decimal values of 125278 respectively, and searching the corresponding base32 code to obtain the GeoHash code: 1tv 8;
and S23, repeating the operations of the steps S21 and S22 to obtain the GeoHash code of each sight spot in the sight area.
Each GeoHash character string respectively represents a rectangular area, all points in the rectangular area share the same GeoHash, and therefore passenger flow information can be inquired and counted by using prefix/suffix matching of the character strings.
S3, carrying out region division on the passenger flow data; after map division is carried out according to scenic spots based on scenic spots, region division is carried out on tourist GPS data, similarly, the dividing process is also a process of adding indexes, each index represents a small rectangular region, and a moving object located in the region is contained in the index. The invention improves the common spatial point index algorithm, divides the index structure into the forms of year, month and day, GeoHash coding and time, minute and second, can count passenger flow information according to specific scenic spots in scenic spots, and can obtain real-time people flow distribution information according to time, thereby achieving the purpose of subsequent real-time load monitoring. As shown in fig. 2, the method specifically includes the following sub-steps:
s31, dividing the real-time passenger flow data acquired in the step S1 according to the one-to-one correspondence of time and space: dividing the time data respectively in the forms of yyyy-MM-dd and hh: MM: ss to respectively obtain time character strings of year, month and day and time, minute and second character strings; performing GeoHash coding processing on the spatial data, judging whether the prefix of the GeoHash character string is the same as the GeoHash code of each scenic spot obtained in the step S2, and judging the same passenger flow data point to be located in the corresponding scenic spot;
and S32, recombining the processed year, month, day, hour, minute and second time character string and the GeoHash code according to the yyy-MM-dd + GeoHash code + hh: MM: ss form to obtain a plurality of rectangular areas. The method has the advantages that passenger flow information can be counted according to specific scenic spots in scenic spots, and real-time people flow distribution information can be obtained according to time, so that the purpose of follow-up real-time load monitoring is achieved.
S4, referring to past real passenger flow data and a maximum load value of a scenic spot, setting a tourist current carrying upper limit label for each scenic spot of the scenic spot, recording the tourist current carrying upper limit label as tValue, setting a load threshold as 80% of the tourist current carrying upper limit, and simultaneously warehousing and storing;
s5, processing the passenger flow data obtained in the step S1, and judging whether the scenic spot passenger flow is overloaded or not; the specific implementation method of S5 is as follows: real-time passenger flow statistics based on Spark Streaming is adopted to process passenger flow data, Spark Streaming is an extension of Spark core API, and high-throughput real-time flow data with a fault-tolerant mechanism can be processed. And continuously accessing the processed real-time passenger flow data into a Spark Streaming by batches through kafka, and then processing the real-time passenger flow data through a Spark engine to generate a result flow by batches. The method comprises the following specific steps:
s51, adding a staff list, and storing the information of the managers in the scenic spot, which is in charge of each scenic spot, including the mobile phone number or other contact ways;
s52, adding a passenger flow number variable count and a weight variable weight for each sight spot, counting the count values of each batch of data in different sight spots, and calculating the weight value:
weight(i)=count(i)/(count(1)+count(2)+…+count(n))
i is 1,2, …, n, n represents the total number of sights;
s53, when the count (i) is more than or equal to tValue, namely when the passenger flow of the scenic spot i exceeds the set scenic spot passenger load threshold value, the tourist is not suitable to be accommodated, the database inquires the contact way of the i scenic spot person in charge, and sends a warning message to the scenic spot management personnel (preferably, the warning message is informed in a short message mode, and the short message is sent to the management personnel by sending a Alry carp SDK through a third-party short message sending service).
S6, displaying current passenger flow information by adopting a scenic spot real-time passenger flow distribution density thermodynamic diagram based on Baidu Echarts; the thermodynamic diagram is a good way to show the passenger flow dynamics, and the implementation principle can be roughly summarized into the following steps: firstly, setting a circle with gradually changed gray scale from the center to the outside for each data point; secondly, calculating a gray value obtained by cross superposition of the data of each pixel point by utilizing the principle that the gray values can be superposed; and thirdly, performing color mapping in a color ribbon according to the gray value obtained by calculating each pixel, and finally coloring the image to obtain the heat flow graph. The invention draws a scenic spot passenger flow distribution thermodynamic diagram based on the Baidu Echarts. The method specifically comprises the following substeps:
s61, adopting the result flow obtained in the step S5 as a data source of the thermodynamic diagram; defining longitude and latitude as position information, weight as weight, wherein the data format of the thermodynamic diagram consists of (lat, lng, weight), lat represents latitude, and lng represents longitude;
s62, filling data on the map based on canvas;
s63, calculating the transparency value alpha of each data point on the map according to the weight value weight of each data point obtained in the step S5:
weight Min ═ alpha [0], weight Max ═ alpha [1], and the remaining alpha values are calculated as:
alpha[i]=(weight[i]-weight[min])/(weight[max]-weight[min]);
s64, calling a getImageData () method provided by canvas to obtain the gray value of each pixel point on the canvas, thereby obtaining the color of the corresponding position in the color ribbon.
In addition, because the invention carries out corresponding grid division on the scenic map when processing the data source, the grid operation is carried out on the data points when rendering the thermodynamic diagram, the rendering cost can be effectively reduced, and the display efficiency of the thermodynamic diagram is improved.
The invention also discloses a scenic spot real-time load monitoring system based on the space-time big data, which comprises a data source acquisition module, a scenic spot data analysis module, a passenger flow load monitoring module and a result visualization module, wherein the scenic spot data analysis module comprises a scenic spot map division submodule and a passenger flow data division submodule;
the data source acquisition module is used for acquiring accurate GIS information of each scenic spot in the scenic spot by calling a third party API; obtaining GPS data of the tourists based on free WiFi provided by the scenic spot; based on a video analysis principle, acquiring the amount of tourists in a head and shoulder recognition mode;
the scenic spot map dividing submodule is used for optimizing the scenic spot GIS data: partitioning a map of a scenic spot according to positions of the scenic spots;
the passenger flow data division submodule is used for optimizing the tourist GPS data: carrying out region division on the tourist GPS data;
the passenger flow load monitoring module is used for adding a passenger flow threshold label to each scenic spot, comparing the current passenger flow with a threshold value, and sending out a warning when the passenger flow exceeds the threshold value; adding a scenic spot and scenic spot management personnel list, storing the contact information of each scenic spot principal, and contacting the scenic spot principal when a load warning occurs; adding a weight value to the passenger flow data passing through each scenic spot, and calculating the weight value in real time;
and the result visualization module is used for defining the data format of the thermodynamic diagram, filling data on the map based on canvas, calculating a corresponding transparent value alpha according to the weight of each data point, and then drawing the thermodynamic diagram on the map.
As shown in fig. 3, the system structure of the present invention is mainly divided into three layers:
the lowest layer is a data acquisition layer which mainly acquires scenic spot geographic position data and tourist target position data. The main data sources are from WiFi probes and video surveillance. Based on the free WiFi provided by the scenic spot, the code of the mobile phone of the tourist is obtained through the probe in the network information covered in the scenic spot, each mobile phone has a unique MAC code, and the WiFi probe captures the code and counts. In addition, the data of the tourists is obtained in a video mode, a camera is installed at the entrance of each scenic spot in the scenic spot, and the number of the tourists in the current scenic spot channel is automatically captured.
The second layer is a data analysis layer which carries out optimization processing on the collected real-time data including scenic spot GIS data and tourist GPS data and mainly completes the functions of regional division of scenic spots, data access interaction, processing of passenger flow data and the like. And then the processed data is accessed into a passenger flow load monitoring module.
The third layer is a passenger flow load monitoring layer which mainly accesses the processed passenger flow data into a load monitoring module to complete the functions of real-time passenger flow statistics, overload warning and the like.
The fourth layer is a data display layer, and the data display layer is used for drawing population density distribution maps of scenic spots in different time periods of each scenic spot through a result stream obtained by the third layer based on a third-party tool Echarts.
It will be appreciated by those of ordinary skill in the art that the embodiments described herein are intended to assist the reader in understanding the principles of the invention and are to be construed as being without limitation to such specifically recited embodiments and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.

Claims (4)

1.一种基于时空大数据的景区实时负荷监控方法,其特征在于,包括以下步骤:1. a scenic spot real-time load monitoring method based on spatiotemporal big data, is characterized in that, comprises the following steps: S1、获取景区客流量数据,采用以下两种方式获取景区客流量数据:一是基于视频分析原理,采用以头、肩识别的方式进行游客量统计,捕捉当前景点的游客数量;二是基于WiFi模式,在景区内部覆盖网络信息,当游客连接开放式WiFi时则会被统计到数据库;S1. To obtain the tourist flow data of the scenic spot, the following two methods are used to obtain the tourist flow data of the scenic spot: one is based on the principle of video analysis, and the head and shoulder identification method is used to conduct tourist statistics to capture the number of tourists in the current scenic spot; the other is based on WiFi mode, the network information is covered inside the scenic spot, and when tourists connect to open WiFi, they will be counted in the database; S2、进行景区地图分块;包括以下子步骤:S2, perform the scenic map segmentation; including the following sub-steps: S21、计算景点的经纬度二进制编码:地球的经度区间是[-180,180],纬度区间是[-90,90];S21. Calculate the binary code of the latitude and longitude of the scenic spot: the longitude interval of the earth is [-180, 180], and the latitude interval is [-90, 90]; 首先计算纬度编码:将区间[-90,90]二分为[-90,0)和[0,90]左右两个区间,判定景点的纬度所处区间,若景点处于左边区间则记为0,处于右边区间则记为1;First calculate the latitude code: Divide the interval [-90,90] into two intervals: [-90,0) and [0,90], and determine the interval where the latitude of the scenic spot is located. If the scenic spot is in the left interval, it is recorded as 0, In the right range, it is recorded as 1; 将景区所处区间继续划分为左右两个区间,判定景点的纬度所处区间,若景点处于左边区间则记为0,处于右边区间则记为1;Continue to divide the interval where the scenic spot is located into two intervals, left and right, and determine the interval where the latitude of the scenic spot is located. If the scenic spot is in the left interval, it is recorded as 0, and if it is in the right interval, it is recorded as 1; 依次对景点所处区间进行划分和判断操作,得到景点纬度的八位数二进制编码;Divide and judge the interval where the scenic spot is located in turn, and obtain the eight-digit binary code of the latitude of the scenic spot; 采用与纬度编码相同的划分和判断操作,得到景点经度的八位数二进制编码;Using the same division and judgment operation as the latitude code, the eight-digit binary code of the longitude of the scenic spot is obtained; S22、生成GeoHash编码,按照偶数位放经度,奇数位放纬度的规则,重新组合经度和纬度的二进制串,生成16位新的二进制编码;然后将16位二进制编码转化成十进制数值,再查找对应的base32编码,即可得到GeoHash编码;S22. Generate a GeoHash code. According to the rule of placing longitude in even digits and latitude in odd digits, recombine the binary strings of longitude and latitude to generate a new 16-bit binary code; then convert the 16-bit binary code into a decimal value, and then search for the corresponding Base32 encoding, you can get GeoHash encoding; S23、重复步骤S21和S22的操作,得到景区内每个景点的GeoHash编码;S23, repeating the operations of steps S21 and S22 to obtain the GeoHash code of each scenic spot in the scenic spot; S3、对客流数据进行区域划分;S3. Divide the passenger flow data into regions; S4、参考景区过往的真实客流数据以及最大负荷数值,为景区的每个景点设置一个游客载流上限标签,记为tValue,并将负荷阈值设置为游客载流量上限*80%,同时入库保存;S4. Referring to the actual passenger flow data and the maximum load value of the scenic spot in the past, set a tourist load cap label for each scenic spot in the scenic spot, which is recorded as tValue, and set the load threshold to the tourist load cap * 80%, and store it in the warehouse at the same time. ; S5、对步骤S1获取的客流量数据进行处理,判断景点客流量是否超负荷;S5, processing the passenger flow data obtained in step S1 to determine whether the tourist flow of the scenic spot is overloaded; S6、采用基于百度Echarts的景区实时客流分布密度热力图展示当前客流量信息。S6. The real-time passenger flow distribution density heat map based on Baidu Echarts is used to display the current passenger flow information. 2.根据权利要求1所述的一种基于时空大数据的景区实时负荷监控方法,其特征在于,所述步骤S3包括以下子步骤:2. a kind of scenic spot real-time load monitoring method based on spatiotemporal big data according to claim 1, is characterized in that, described step S3 comprises following sub-steps: S31、将步骤S1获取到的实时客流数据按时间和空间一一对应进行划分:将时间数据分别以yyyy-MM-dd和hh:mm:ss的形式进行分割,分别得到年月日的时间字符串和时分秒的字符串;将空间数据做GeoHash编码处理,判断GeoHash字符串的前缀是否和步骤S2中得到的各个景点GeoHash编码相同,将相同的客流数据点判定为位于对应的景点之中;S31. Divide the real-time passenger flow data obtained in step S1 by one-to-one correspondence between time and space: divide the time data in the form of yyyy-MM-dd and hh:mm:ss, respectively, to obtain the time characters of year, month, and day respectively. Strings and strings of hours, minutes and seconds; perform GeoHash encoding processing on the spatial data, determine whether the prefix of the GeoHash string is the same as the GeoHash encoding of each scenic spot obtained in step S2, and determine the same passenger flow data point as being located in the corresponding scenic spot; S32、将处理后的得到时间字符串年月日、时分秒和GeoHash编码按照yyyy-MM-dd+GeoHash编码+hh:mm:ss的形式重新组合,得到多个矩形区域。S32 , recombining the obtained time string year, month, day, hour, minute, second, and GeoHash encoding in the form of yyyy-MM-dd+GeoHash encoding+hh:mm:ss to obtain multiple rectangular regions. 3.根据权利要求1所述的一种基于时空大数据的景区实时负荷监控方法,其特征在于,所述步骤S5具体实现方法为:采用基于Spark Streaming的实时客流统计来对客流量数据进行处理,具体的步骤为:3. a kind of scenic spot real-time load monitoring method based on spatiotemporal big data according to claim 1, is characterized in that, the concrete realization method of described step S5 is: adopt the real-time passenger flow statistics based on Spark Streaming to process passenger flow data , the specific steps are: S51、添加一张工作人员表,存储景区内负责各个景点的管理人员的信息;S51. Add a staff table to store the information of the managers responsible for each scenic spot in the scenic spot; S52、为每个景点添加一个客流数变量count和权重变量weight,统计每批次数据在不同景点的count值,并计算出weight值:S52. Add a passenger flow variable count and a weight variable weight to each scenic spot, count the count value of each batch of data in different scenic spots, and calculate the weight value: weight(i)=count(i)/(count(1)+count(2)+…+count(n))weight(i)=count(i)/(count(1)+count(2)+…+count(n)) i=1,2,…,n,n表示景点总数量;i=1,2,...,n,n represents the total number of scenic spots; S53、当count(i)≥tValue,即当景点i的客流量超过所设景点客载阈值时,此时不宜再接纳游客,数据库查询i景点负责人的联系方式,向景点管理人员发送警告消息。S53. When count(i)≥tValue, that is, when the passenger flow of the scenic spot i exceeds the set passenger load threshold of the scenic spot, it is no longer suitable to accept tourists at this time. The database queries the contact information of the person in charge of the scenic spot i, and sends a warning message to the scenic spot management personnel . 4.根据权利要求1所述的一种基于时空大数据的景区实时负荷监控方法,其特征在于,所述步骤S6包括以下子步骤:4. a kind of scenic spot real-time load monitoring method based on spatiotemporal big data according to claim 1, is characterized in that, described step S6 comprises following sub-steps: S61、采用步骤S5得到的结果流作为热力图的数据源;其中,定义经纬度为位置信息,weight为权重,热力图的数据格式由(lat,lng,weight)组成,lat表示纬度,lng表示经度;S61, using the result stream obtained in step S5 as the data source of the heat map; wherein, the latitude and longitude is defined as the location information, the weight is the weight, the data format of the heat map is composed of (lat, lng, weight), lat represents latitude, and lng represents longitude ; S62、基于canvas在地图上填充数据;S62. Fill data on the map based on canvas; S63、根据步骤S5得到的每个数据点的权重值weight,计算每个数据点在地图上的透明度值alpha:S63, according to the weight value weight of each data point obtained in step S5, calculate the transparency value alpha of each data point on the map: weightMin=alpha[0],weightMax=alpha[1],其余的alpha值的计算公式为:weightMin=alpha[0], weightMax=alpha[1], and the calculation formulas of the remaining alpha values are: alpha[i]=(weight[i]-weight[min])/(weight[max]-weight[min]);alpha[i]=(weight[i]-weight[min])/(weight[max]-weight[min]); S64、调用canvas提供的getImageData()方法得到画布上每个像素点的灰度值,从而得到彩色色带中对应位置的颜色。S64. Call the getImageData() method provided by the canvas to obtain the grayscale value of each pixel on the canvas, thereby obtaining the color of the corresponding position in the color ribbon.
CN201911355139.7A 2019-12-25 2019-12-25 Scenic spot real-time load monitoring method and system based on space-time big data Expired - Fee Related CN111083728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911355139.7A CN111083728B (en) 2019-12-25 2019-12-25 Scenic spot real-time load monitoring method and system based on space-time big data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911355139.7A CN111083728B (en) 2019-12-25 2019-12-25 Scenic spot real-time load monitoring method and system based on space-time big data

Publications (2)

Publication Number Publication Date
CN111083728A CN111083728A (en) 2020-04-28
CN111083728B true CN111083728B (en) 2021-01-26

Family

ID=70317571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911355139.7A Expired - Fee Related CN111083728B (en) 2019-12-25 2019-12-25 Scenic spot real-time load monitoring method and system based on space-time big data

Country Status (1)

Country Link
CN (1) CN111083728B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111601080B (en) * 2020-05-12 2021-08-10 湖北君赞智能科技有限公司 Video management system for community security monitoring video storage
CN114064380A (en) * 2020-07-31 2022-02-18 中移(苏州)软件技术有限公司 A monitoring display method, device, equipment and computer storage medium
CN112070791B (en) * 2020-09-21 2024-06-14 深圳喜为智慧科技有限公司 Method and system for improving precision and efficiency of number of livestock individuals
CN113361734B (en) * 2021-06-09 2023-11-07 合肥工业大学 A statistical system for passenger flow density in scenic spots
CN113744334B (en) * 2021-08-23 2024-08-09 黄山徽扬物联科技有限公司 A method and system for real-time distribution analysis of scenic spot tourists based on monitoring equipment and GIS
CN114037564A (en) * 2021-10-18 2022-02-11 浪潮卓数大数据产业发展有限公司 Method for identifying scenic spot passenger flow congestion based on big data
CN113989087A (en) * 2021-10-28 2022-01-28 浙江力石科技股份有限公司 Scenic spot scheduling control method
CN113947758B (en) * 2021-12-16 2022-04-29 北京凯泰铭科技文化发展有限公司 Big data method and system of sponge system based on scenic spot chessboard division
CN114443792A (en) * 2021-12-30 2022-05-06 江苏慧眼数据科技股份有限公司 Passenger flow analysis system and method under map mode
CN114937243A (en) * 2022-06-10 2022-08-23 山东数元信息技术有限公司 Early warning method, system and device applied to exhibition of exhibition hall
CN116680351A (en) * 2023-05-17 2023-09-01 中国地震台网中心 Earthquake population thermodynamic real-time acquisition method and system based on mobile big data
CN118690309B (en) * 2024-08-23 2024-11-15 科睿特软件集团股份有限公司 Scenic spot passenger flow analysis method and system based on multi-mode feature recognition

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010005424A1 (en) * 2008-07-07 2010-01-14 Primordial, Inc. System and method for generating tactical routes
CN101668244A (en) * 2008-09-02 2010-03-10 上海领美实业有限公司 System and method for intelligent management and service of people streams in public places

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392268B (en) * 2014-12-04 2017-06-06 信阳农林学院 A kind of tourist attraction employment flow monitoring and guiding system and method
CN105225055A (en) * 2015-10-16 2016-01-06 成都中科大旗软件有限公司 A kind of scenic spot total management system
US10325332B2 (en) * 2015-12-30 2019-06-18 International Business Machines Corporation Incentivizing human travel patterns to reduce traffic congestion
US9997046B2 (en) * 2015-12-31 2018-06-12 International Business Machines Corporation Visitor flow management
JP6674791B2 (en) * 2016-02-17 2020-04-01 株式会社Screenホールディングス Congestion degree estimation method, number of persons estimation method, congestion degree estimation program, number of persons estimation program, and number of persons estimation system
CN108416464A (en) * 2018-01-31 2018-08-17 山东汇贸电子口岸有限公司 A kind of passenger flow forecasting and system based on mobile terminal of mobile telephone
CN108549976A (en) * 2018-03-28 2018-09-18 四川亨通网智科技有限公司 Smart travel big data analysis method
CN109727175A (en) * 2018-12-25 2019-05-07 北京市颐和园管理处 A kind of tourist attraction flow monitoring system for passenger

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010005424A1 (en) * 2008-07-07 2010-01-14 Primordial, Inc. System and method for generating tactical routes
CN101668244A (en) * 2008-09-02 2010-03-10 上海领美实业有限公司 System and method for intelligent management and service of people streams in public places

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《DETERMINING THE TOURIST ATTRACTIVE REGIONS BY GIS ANALYSIS USING HEATMAPS》;Viktoriya KULYK,Rostyslav SOSSA;《Geodesy and Cartography》;20180430;全文 *
《一种热力图的景区人流量动态监测方法》;冉桂华,杨晔轩,殷浤益,马云龙,戴璐鸾,李蝶,杨元维;《计算机与数字工程》;20181130;全文 *

Also Published As

Publication number Publication date
CN111083728A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN111083728B (en) Scenic spot real-time load monitoring method and system based on space-time big data
Qin et al. Applying big data analytics to monitor tourist flow for the scenic area operation management
CN111354472B (en) Infectious disease transmission monitoring and early warning system and method
CN108288106B (en) Big data-based tourist flow prediction method
KR101937096B1 (en) 3D monitoring server using 3D BIM object model and 3D monitoring system comprising it
CN105760454B (en) A kind of Urban Population Distribution density real time dynamic measurement method
CN107609682B (en) Medium-short term early warning method for population aggregation in big data environment
US6975939B2 (en) Mapping patterns of movement based on the aggregation of spatial information contained in wireless transmissions
Liu et al. New parameter-free mobility model: Opportunity priority selection model
US11468999B2 (en) Systems and methods for implementing density variation (DENSVAR) clustering algorithms
KR101876114B1 (en) Terminal, server, system for 3d modeling and 3d modeling method using the same
CN107730115A (en) A kind of method for evaluating quality of the multi-source location track data based on AHP
CN101996258A (en) Electronic map information grid processing and querying method facilitating quick query
CN115752490B (en) Safe travel route optimization method and system based on big data and positioning technology
JP2022504597A (en) Area division method and equipment, electronic equipment and programs
CN107833161A (en) A kind of tourist communications management system based on big data
CN111429220B (en) Travel route recommendation system and method based on operator big data
CN115761525B (en) A Tropical Cyclone Target Detection and Visualization Method in Remote Sensing Images
CN106331633A (en) A method and system for displaying and quickly accessing multiple monitoring resources
CN108184203A (en) Multistage preventing control method, device, equipment and medium based on operator's position signaling
CN107515842A (en) A method and system for dynamic prediction of urban population density
CN110851547A (en) Multi-data-source map data fusion method
CN114969153B (en) A method and device for determining personnel distribution data
KR102688022B1 (en) How to provide the smart city safety service platform
CN116975785A (en) Multi-source heterogeneous data fusion analysis method and system based on CIM model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210126

Termination date: 20211225