Early warning method and device for heat of human flow, electronic equipment and storage medium

By calculating the sum of the number of map grids and client terminals within the preset range of the base station, and combining the test report to calculate the thermal value of human flow, the problem of low accuracy and low accuracy in the thermal calculation of human flow in the existing technology is solved, and a more accurate analysis of human flow distribution is achieved. and early warning.

CN118171035BActive Publication Date: 2024-09-03CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410587370.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-03
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

In the existing technology, the thermal calculation of people flow has poor accuracy and low accuracy. The location information of the base station leads to calculation deviation. Thermal imaging technology relies on device density and cannot remove duplicates, resulting in inaccurate calculation of thermal power of people flow.

Method used

By obtaining the sum of the number of map grids and the sum of the number of client terminals within the preset range of the base station, the proportion coefficient is calculated, and the heat value of the flow of people is calculated based on the test report. If the warning threshold is exceeded, an alarm message is output, and the gradient boosting decision tree algorithm is used to train the location calculation. model to improve location accuracy.

Benefits of technology

It improves the precision and accuracy of thermal calculation of people flow, reduces the calculation deviation, and enhances the accuracy of people flow distribution and the authenticity of coverage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118171035B
    Figure CN118171035B
Patent Text Reader

Abstract

The present disclosure discloses a method and device for early warning of heat of human flow, an electronic device and a storage medium, and relates to the field of data processing technology. The main technical scheme includes: obtaining a first quantity sum, and obtaining a second quantity sum, and obtaining a third quantity sum, and obtaining a fourth quantity sum, and obtaining a fifth quantity sum; performing a quotient calculation on the first quantity sum and the second quantity sum to obtain a first proportional coefficient, and performing a quotient calculation on the fourth quantity sum and the fifth quantity sum to obtain a second proportional coefficient; performing a product calculation on the third quantity sum, the first proportional coefficient and the second proportional coefficient to obtain a heat value of human flow corresponding to the target second map grid; if the heat value of human flow exceeds a preset early warning threshold, an alarm message is output. Compared with the related art, the embodiment of the present disclosure improves the accuracy of the calculation of heat of human flow and improves the accuracy of the calculation of heat of human flow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of big data processing and computing, and in particular to a method and device for early warning of heat of human flow, electronic equipment and storage medium. Background Art

[0002] In recent years, the informationization upgrade of the cultural tourism industry has been in full swing, especially the informationization management of tourist attractions, which has put forward higher requirements for the informationization system of tourist attractions. Among them, real-time statistics and heat map display of the flow of people in the scenic area, analysis of the distribution of the flow of people, real-time control of the flow of people in each area of ​​the scenic area, avoidance of the safety risk of overload of people, and early warning, control and guidance of the flow of people have become an important task of the informationization management of scenic spots.

[0003] The key to early warning of thermal energy of human flow is to obtain thermal energy of human flow. At present, there are two methods to obtain thermal energy of human flow. One is to use the location information of base stations as the location information of human flow under the base station. Considering the coverage range of base stations, it can cover 200-500 meters in densely populated areas and up to 2 kilometers in sparsely populated areas. Therefore, there is a certain calculation deviation when using the location information of base stations as the location information of human flow under the base station. The maximum distance deviation can reach 2 kilometers, resulting in poor calculation accuracy of thermal energy of human flow. The other is to use the satellite positioning of the Global Positioning System (GPS) of the client terminal of human flow as the location information value of human flow. If the client terminal does not turn on GPS, there is a lack of statistics on the client terminal, and it is necessary to obtain thermal imaging data of human flow. Thermal imaging technology requires special sensing equipment to be installed in the scenic area. The accuracy of its statistics depends on the installation density of thermal imaging equipment, and it can only identify individuals based on thermal sensing, and cannot deduplicate the identified individuals. There is a problem of repeated statistics, resulting in low accuracy of calculation of thermal energy of human flow.

[0004] Although the above two methods can meet the needs of obtaining heat flow and thermal power, they use the location information of the base station as the location information of the crowd under the base station. The location information of the crowd is concentrated on the location information of the base station, and cannot well reflect the actual location of the people within the coverage area of ​​the base station, resulting in poor calculation accuracy of the crowd thermal power. When using thermal imaging technology, its statistical accuracy depends on the installation density of thermal imaging equipment, and it can only identify individuals based on thermal sensing, and cannot deduplicate the identified individuals. There is a problem of repeated statistics, which leads to low calculation accuracy of the crowd thermal power. Summary of the invention

[0005] The present invention provides a method and device for early warning of heat of human flow, electronic equipment and storage medium, the main purpose of which is to solve the problem of poor calculation precision and low calculation accuracy of heat of human flow.

[0006] According to a first aspect of the present disclosure, a method for early warning of heat of human flow is provided, which comprises:

[0007] Obtain a first quantity sum, and obtain a second quantity sum, and obtain a third quantity sum, and obtain a fourth quantity sum, and obtain a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of the base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, the third quantity sum is the sum of the quantities of second client terminals that establish communication with the base station, the fourth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station in the target second map grid, and the fifth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station within the preset range;

[0008] Calculating a quotient of the first total quantity and the second total quantity to obtain a first proportional coefficient, and calculating a quotient of the fourth total quantity and the fifth total quantity to obtain a second proportional coefficient;

[0009] The third quantity sum, the first proportional coefficient, and the second proportional coefficient are multiplied to obtain a crowd flow heat value corresponding to the target second map grid;

[0010] If the heat value of the crowd exceeds the preset warning threshold, an alarm message is output.

[0011] Optionally, obtaining the fourth quantity sum includes:

[0012] Obtaining a second test report; the second test report is a test report sent by the first client terminal to the base station, and the second test report does not include location information of a second map grid for locating the first client terminal;

[0013] Calling a preset position calculation model to calculate the position information of the second test report to obtain the first test report;

[0014] According to the location information in the first test report, searching for the total number of first client terminals corresponding to the first test report in the target second grid;

[0015] The total number of first client terminals corresponding to the first test reports in the target second grid is taken as the fourth total number.

[0016] Optionally, the calling of a preset location calculation model to calculate the location information of the second test report to obtain the first test report includes:

[0017] Matching the second test report with a pre-stored drive test report in the preset location calculation model; the drive test report includes location information of a second map grid for locating the first client terminal;

[0018] If a drive test report having the same content as the second test report except for the location information is matched, the location information in the drive test report is used as the target location information of the second test report;

[0019] The target location information is added to the second test report to obtain the first test report.

[0020] Optionally, the training method of the preset position calculation model includes:

[0021] Acquire at least one of the drive test reports within the boundary coordinate range of a training map; the training map is a training map used for performing map grid division;

[0022] Preprocessing the at least one drive test report to obtain the at least one drive test report after processing; the preprocessing includes at least one of deleting a damaged drive test report in the at least one drive test report, extracting features from the at least one drive test report, and normalizing the at least one drive test report;

[0023] Combining the processed at least one drive test report into a training drive test report set;

[0024] Based on the gradient boosting decision tree algorithm, the initial position calculation model is trained using the training drive test report set to obtain the trained preset position calculation model.

[0025] Optionally, before obtaining the first quantity sum, obtaining the second quantity sum, obtaining the third quantity sum, obtaining the fourth quantity sum, and obtaining the fifth quantity sum, the method further includes:

[0026] Obtaining boundary coordinates of a target map; the target map is used to perform map grid division;

[0027] A preset map grid division algorithm is called to perform map grid division on the target map within the boundary coordinates to obtain at least one third map grid; the third map grid is any map grid within the boundary range of the target map.

[0028] Optionally, obtaining the first quantity sum includes:

[0029] Acquire the boundary coordinates of the at least one third map grid, and acquire the boundary coordinates of the preset range of the base station;

[0030] Determining whether the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station;

[0031] If the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station, use the third map grid as the first map grid;

[0032] The total number of the first map grids is calculated to obtain the first total number.

[0033] Optionally, obtaining the second quantity sum includes:

[0034] Obtaining location information in the first test report, and obtaining boundary coordinates of the first map grid;

[0035] Determining whether the location information in the first test report is within the range of the boundary coordinates of the first map grid;

[0036] If the location information in the first test report is within the range of the boundary coordinates of the first map grid, the first map grid is used as the second map grid;

[0037] The sum of the numbers of the second map grids is calculated to obtain the second sum.

[0038] According to a second aspect of the present disclosure, there is provided an early warning device for heat of human flow, comprising:

[0039] an acquisition unit, configured to acquire a first quantity sum, a second quantity sum, a third quantity sum, a fourth quantity sum, and a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of a base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, the third quantity sum is the sum of the quantities of second client terminals that establish communication with the base station, the fourth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station in a target second map grid, and the fifth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station within the preset range;

[0040] a first calculation unit, configured to calculate a quotient of the first quantity sum and the second quantity sum to obtain a first proportional coefficient, and to calculate a quotient of the fourth quantity sum and the fifth quantity sum to obtain a second proportional coefficient;

[0041] A second calculation unit is used to calculate the product of the third quantity sum, the first proportional coefficient, and the second proportional coefficient to obtain a crowd flow thermal value corresponding to the target second map grid;

[0042] The output unit is used to output an alarm message when the thermal value of the crowd exceeds a preset warning threshold.

[0043] Optionally, the acquiring unit includes:

[0044] an acquisition module, configured to acquire a second test report; the second test report is a test report sent by the first client terminal to the base station, and the second test report does not include location information of a second map grid for locating the first client terminal;

[0045] a calculation module, configured to call a preset position calculation model to calculate the position information of the second test report to obtain the first test report;

[0046] A search module, configured to search, according to the location information in the first test report, the total number of first client terminals corresponding to the first test report in the target second grid;

[0047] As a module, it is used to take the total number of first client terminals corresponding to the first test reports in the target second grid as the fourth total number.

[0048] Optionally, the calculation module is further used to:

[0049] Matching the second test report with a pre-stored drive test report in the preset location calculation model; the drive test report includes location information of a second map grid for locating the first client terminal;

[0050] When a drive test report having the same content as the second test report except for the location information is matched, using the location information in the drive test report as the target location information of the second test report;

[0051] The target location information is added to the second test report to obtain the first test report.

[0052] Optionally, the calculation module is further used to:

[0053] Acquire at least one of the drive test reports within the boundary coordinate range of a training map; the training map is a training map used for performing map grid division;

[0054] Preprocessing the at least one drive test report to obtain the at least one drive test report after processing; the preprocessing includes at least one of deleting a damaged drive test report in the at least one drive test report, extracting features from the at least one drive test report, and normalizing the at least one drive test report;

[0055] Combining the processed at least one drive test report into a training drive test report set;

[0056] Based on the gradient boosting decision tree algorithm, the initial position calculation model is trained using the training drive test report set to obtain the trained preset position calculation model.

[0057] Optionally, the device further comprises:

[0058] The acquisition unit is further used to acquire the boundary coordinates of the target map before acquiring the first quantity sum, acquiring the second quantity sum, acquiring the third quantity sum, acquiring the fourth quantity sum, and acquiring the fifth quantity sum; the target map is a map for performing map grid division;

[0059] The division unit is used to call a preset map grid division algorithm to divide the target map within the boundary coordinates into map grids to obtain at least one third map grid; the third map grid is any map grid within the boundary range of the target map.

[0060] Optionally, the acquisition unit is further configured to:

[0061] Acquire the boundary coordinates of the at least one third map grid, and acquire the boundary coordinates of the preset range of the base station;

[0062] Determining whether the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station;

[0063] When the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station, using the third map grid as the first map grid;

[0064] The total number of the first map grids is calculated to obtain the first total number.

[0065] Optionally, the acquisition unit is further configured to:

[0066] Obtaining location information in the first test report, and obtaining boundary coordinates of the first map grid;

[0067] Determining whether the location information in the first test report is within the range of the boundary coordinates of the first map grid;

[0068] When the location information in the first test report is within the range of the boundary coordinates of the first map grid, using the first map grid as the second map grid;

[0069] The sum of the numbers of the second map grids is calculated to obtain the second sum.

[0070] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0071] at least one processor; and

[0072] a memory communicatively connected to the at least one processor; wherein,

[0073] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0074] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0075] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0076] The present disclosure provides an early warning method and device for heat of human flow, an electronic device and a storage medium, which obtain a first total number, a second total number, a third total number, a fourth total number, and a fifth total number, wherein the first total number is the total number of first map grids within a preset range of a base station, the first map grid is any map grid within the preset range, the second total number is the total number of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, and the third total number is the total number of second map grids within the preset range. The sum is the sum of the numbers of second client terminals that establish communication with the base station, the fourth sum is the sum of the numbers of first client terminals that send the first test report to the base station in the target second map grid, and the fifth sum is the sum of the numbers of first client terminals that send the first test report to the base station within the preset range; the first sum and the second sum are calculated as a quotient to obtain a first proportional coefficient, and the fourth sum and the fifth sum are calculated as a quotient to obtain a second proportional coefficient; the third sum, the first proportional coefficient and the second proportional coefficient are calculated as a product to obtain a thermal value of the flow of people corresponding to the target second map grid; if the thermal value of the flow of people exceeds the preset warning threshold, an alarm message is output. Compared with the related art, the embodiment of the present disclosure combines the characteristics of the first test report that the sampling data is small but the coverage is wide, and the number of second client terminals that establish communication with the base station is accurate and true, and constructs the proportion relationship of the number of people in the second map grid within the preset range of the base station based on the first test report. The number of second client terminals that establish communication with the base station is used, and the proportion relationship of the first test report within the preset range of the base station is used to calculate, and the distribution of the number of second client terminals that establish communication with the base station in the first map grid is obtained, thereby improving the accuracy of the calculation of the heat of the human flow and improving the accuracy of the calculation of the heat of the human flow.

[0077] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0079] Figure 1 A schematic diagram of a flow chart of a method for early warning of heat of a flow of people provided in an embodiment of the present disclosure;

[0080] Figure 2 A flowchart of a method for acquiring the total number of first client terminals that send a first test report to the base station in a target second map grid provided by an embodiment of the present disclosure;

[0081] Figure 3 A schematic diagram of a data format of a drive test report provided by an embodiment of the present disclosure;

[0082] Figure 4 A schematic diagram showing a map grid provided by an embodiment of the present disclosure;

[0083] Figure 5 A schematic diagram of the structure of a thermal warning device for human flow provided by an embodiment of the present disclosure;

[0084] Figure 6 A schematic diagram of the structure of another early warning device for thermal energy of human flow provided by an embodiment of the present disclosure;

[0085] Figure 7 A schematic block diagram of an exemplary electronic device provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0086] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0087] The following describes the early warning method and device for thermal energy of human flow, electronic equipment and storage medium according to the embodiments of the present disclosure with reference to the accompanying drawings.

[0088] Figure 1 The present invention is a flowchart of a method for early warning of heat of human flow provided by an embodiment of the present invention.

[0089] like Figure 1 As shown, the method is applied in a server, and the method comprises the following steps:

[0090] Step 101, obtain a first quantity sum, obtain a second quantity sum, obtain a third quantity sum, obtain a fourth quantity sum, and obtain a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of the base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, the third quantity sum is the sum of the quantities of second client terminals that establish communication with the base station, the fourth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station in the target second map grid, and the fifth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station within the preset range.

[0091] The first test report refers to a report file generated by the first client terminal in the form of a first test report that is periodically or event-triggered reported to the base station on a service channel. The first test report is more comprehensive, more complete, and easier to obtain than traditional road test data. Statistical analysis of a large number of first test reports can also be used to discover network problems. The first client terminal is an electronic device that establishes communication with the base station within a preset range of the base station and sends a first test report to the base station, such as a mobile phone, a laptop computer, a tablet computer, a smart watch, etc. The preset range can be any range, and the embodiments of the present disclosure are not limited thereto.

[0092] The second client terminal is an electronic device that establishes communication with the base station within a preset range of the base station, wherein the first client terminal is included in the second client terminal.

[0093] The S2 algorithm can be used to divide the map within the preset range of the base station into map grids to obtain at least one map grid, wherein the first map grid is any map grid within the preset range, the second map grid is any map grid within the preset range that includes a first client terminal that sends a first test report to the base station, and the second map grid is included in the first map grid; the S2 algorithm is a spatial index structure for a geographic information system for efficiently managing geospatial data. The S2 algorithm divides the earth's surface into map grids of different levels. Each map grid has a unique identifier and can be subdivided or aggregated as needed. The S2 algorithm can quickly locate, retrieve and analyze geospatial data, such as locations, areas and geographic shapes, but it should be clear that this statement is not intended to limit the first map grid or the second map grid to only be obtained through the S2 algorithm, but can also be obtained through other algorithms.

[0094] By obtaining the sum of the numbers of client terminals in the first and second map grids within the preset range of the base station, the distribution of client terminals in different map grids can be understood, which is used to determine areas with dense human traffic and areas with relatively less human traffic; by obtaining the sum of the numbers of second client terminals that establish communication with the base station (the third sum of numbers), the number of communication connections between the base station and the client terminals can be measured, which is used to evaluate the coverage and communication quality of the base station; by obtaining the sum of the numbers of first client terminals that send first test reports to the base station in the target second map grid (the fourth sum of numbers), it can be determined how many client terminals in the map grid are active and communicating with the base station; by obtaining the sum of the numbers of first client terminals that send first test reports to the base station within the preset range (the fifth sum of numbers), it can be determined how many client terminals are communicating and interacting with the base station within the range of the base station; by obtaining the first sum of numbers, the second sum of numbers, the third sum of numbers, the fourth sum of numbers, and the fifth sum of numbers, it is possible to understand the hot spots of human traffic, the concentration of client terminals, and the communication conditions with the base station, which is of great significance for optimizing the layout of base stations, improving communication quality, and formulating human traffic management strategies.

[0095] Step 102, calculating the quotient of the first quantity sum and the second quantity sum to obtain a first proportional coefficient, and calculating the quotient of the fourth quantity sum and the fifth quantity sum to obtain a second proportional coefficient.

[0096] The purpose of calculating the first proportional coefficient and the second proportional coefficient is to allocate the third total number (the total number of second client terminals that establish communication with the base station) to the target second map grid; the first proportional coefficient is obtained by dividing the second total number (the total number of the second map grid) by the first total number (the total number of the first map grid), and the first proportional coefficient reflects the proportional relationship between the number of client terminals in the second map grid and the number of client terminals in the first map grid. The estimated value of the number of client terminals in the second map grid can be inferred through the first proportional coefficient; the second proportional coefficient is obtained by dividing the fifth total number (the total number of first client terminals that send first test reports to the base station) by the fourth total number (the total number of first client terminals that send first test reports to the base station in the target second map grid), and the second proportional coefficient reflects the proportional relationship of client terminals that send test reports to the base station in the target second map grid. The second proportional coefficient can be used to estimate the number of client terminals in the overall range based on the number of client terminals in the target second map grid; by calculating the first proportional coefficient and the second proportional coefficient, the heat value of the flow of people in the target second map grid can be more accurately inferred for flow management and decision making.

[0097] To facilitate understanding, an example is provided for illustration. Assume that the sum of the first quantity is 1000, the sum of the second quantity is 500, the sum of the fourth quantity is 300, and the sum of the fifth quantity is 200. The first proportional coefficient = the sum of the second quantity / the sum of the first quantity. The first proportional coefficient = 500 / 1000 = 0.5. The second proportional coefficient = the sum of the fifth quantity / the sum of the fourth quantity. The second proportional coefficient = 200 / 300≈0.67.

[0098] Step 103, performing product calculation on the third quantity sum, the first proportional coefficient, and the second proportional coefficient to obtain a crowd flow thermal value corresponding to the target second map grid.

[0099] The purpose of calculating the product of the sum of the third quantity, the first proportional coefficient and the second proportional coefficient to obtain the crowd thermal value corresponding to the target second map grid is to quantify and evaluate the crowd intensity in the target map grid. By calculating the crowd thermal value, the crowd density can be understood. The crowd thermal value can understand the crowd density in the target map grid. A higher crowd thermal value indicates that the crowd activity in the area is higher, and more resources or management measures may be needed to cope with the crowd pressure; according to the crowd thermal value, the allocation of resources can be optimized, such as adding more service facilities and adjusting traffic flow in crowded areas to meet people's needs; the crowd thermal value can be used as a reference for decision-making, such as formulating crowd control strategies, planning urban construction, adjusting commercial layout, etc.; by calculating the crowd thermal value of the target map grid, the crowd distribution can be better understood, and data support can be provided for related decisions to achieve effective management and planning.

[0100] Step 104: if the heat value of the crowd exceeds a preset warning threshold, an alarm message is output.

[0101] When the thermal value of the crowd exceeds the preset warning threshold, the purpose of outputting the alarm information is to promptly detect abnormal crowd conditions and take corresponding measures to ensure public safety and the safety of people's lives and property; the thermal value of the crowd exceeding the preset warning threshold usually indicates that the crowd density of the target second map grid exceeds the normal range, and there may be safety hazards. For example, at transportation hubs such as railway stations and airports or large-scale event venues, if the thermal value of the crowd exceeds the warning threshold, it may cause crowding, trampling and other safety accidents. At this time, timely output of alarm information can remind relevant departments and the public to pay attention to the crowd conditions and take necessary measures to alleviate the pressure of the crowd to avoid unnecessary injuries and losses. Among them, the preset warning threshold can be an arbitrary value, which is not limited in the embodiment of the present disclosure. The alarm information includes but is not limited to the alarm level: the alarm level is based on the thermal value of the crowd The degree of exceeding the preset warning threshold is divided into different levels, such as general alarm, important alarm, emergency alarm, etc.; Alarm type: The alarm type is divided into different types according to the reason why the thermal value of the crowd exceeds the preset warning threshold, such as excessive crowd alarm, crowd congestion alarm, etc.; Alarm time: The alarm time refers to the time when the thermal value of the crowd exceeds the preset warning threshold, which can help us trace the time of occurrence of abnormal crowd flow and take corresponding measures in time; Alarm location: The alarm location refers to the location where the thermal value of the crowd exceeds the preset warning threshold, which can help us locate the specific location of the abnormal crowd flow and quickly allocate resources for control; Alarm suggestions: Alarm suggestions are corresponding measures and suggestions for abnormal crowd flow, such as adding service facilities, adjusting traffic flow, increasing security patrols, etc., to alleviate crowd pressure and avoid the occurrence of safety accidents.

[0102] Therefore, outputting alarm information can timely detect abnormal crowd flow and take corresponding measures to ensure public safety and the safety of people’s lives and property.

[0103] The present disclosure provides an early warning method for heat of human flow, which obtains a first quantity sum, a second quantity sum, a third quantity sum, a fourth quantity sum, and a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of a base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, and the third quantity sum is the sum of the quantities of second map grids within the preset range that are consistent with the base station. the sum of the number of second client terminals that establish communication with the target second map grid, the fourth sum of the number of first client terminals that send the first test report to the base station in the target second map grid, and the fifth sum of the number of first client terminals that send the first test report to the base station within the preset range; the first sum of the number and the second sum of the number are calculated as a quotient to obtain a first proportional coefficient, and the fourth sum of the number and the fifth sum of the number are calculated as a quotient to obtain a second proportional coefficient; the third sum of the number, the first proportional coefficient, and the second proportional coefficient are calculated as a product to obtain a thermal value of the flow of people corresponding to the target second map grid; if the thermal value of the flow of people exceeds a preset warning threshold, an alarm message is output. Compared with the related art, the embodiment of the present disclosure combines the characteristics of the first test report that the sampling data is small but the coverage is wide, and the number of second client terminals that establish communication with the base station is accurate and true, and constructs the proportion relationship of the number of people in the second map grid within the preset range of the base station based on the first test report. The number of second client terminals that establish communication with the base station is used, and the proportion relationship of the first test report within the preset range of the base station is used to calculate, and the distribution of the number of second client terminals that establish communication with the base station in the first map grid is obtained, thereby improving the accuracy of the calculation of the heat of the human flow and improving the accuracy of the calculation of the heat of the human flow.

[0104] As a refinement of step 101, when executing the acquisition of the fourth quantity sum, it can be implemented in the following manner but not limited to: Figure 2 As shown, Figure 2 A flowchart of a method for obtaining the total number of first client terminals that send a first test report to the base station in a target second map grid provided by an embodiment of the present disclosure includes:

[0105] Step 201, obtaining a second test report; the second test report is a test report sent by the first client terminal to the base station, and the second test report does not include location information of a second map grid for locating the first client terminal.

[0106] The location information of the client terminal requires the client terminal to turn on the GPS to obtain, but some client terminals may not turn on the GPS. Therefore, the second test report is a test report sent by the first client terminal to the base station. The second test report does not contain the location information of the second map grid used to locate the first client terminal. Therefore, it is necessary to calculate the first test report containing the location information based on the second test report of the client terminal.

[0107] Step 202: Call a preset location calculation model to calculate the location information of the second test report to obtain the first test report.

[0108] In order to indirectly obtain the location information of the first client terminal, the preset location calculation model is called to calculate the location information of the second test report to obtain the first test report, and then further data analysis, statistics or business processing is performed. Since the second test report does not contain specific location information, the first test report obtained by calculation may provide sufficient location-related information.

[0109] Step 203: searching, according to the location information in the first test report, the total number of first client terminals corresponding to the first test report in the target second grid.

[0110] According to the location information provided in the first test report, the second grid of the target area can be determined, and the first client terminals corresponding to the first test report can be found in this second grid, and the total number of them can be calculated; the location information in the first test report may include the specific locations or regional locations of some client terminals, and the second grid where these client terminals are located can be determined; the process of finding the first client terminals corresponding to the first test report may involve querying and matching a database or data set storing client terminal information; by matching the location information in the first test report, the first client terminals located in the target second grid can be screened out, and the numbers of these first client terminals are added up to obtain the total number of first client terminals corresponding to the first test report; the total number of first client terminals corresponding to the first test report can be used for statistical analysis to help understand the number of first client terminals in the target area and provide a reference for further business decisions.

[0111] Step 204: taking the total number of first client terminals corresponding to the first test reports in the target second grid as the fourth total number.

[0112] The second grid of the target area is determined by the location information in the first test report, and the first client terminals located in the grid are searched, and the result obtained by accumulating the numbers of all first client terminals is the fourth total number.

[0113] As a refinement of the above embodiment, when executing the calling of the preset location calculation model and calculating the location information of the second test report to obtain the first test report, it can be implemented in but not limited to the following manner:

[0114] The second test report is matched with the pre-stored drive test report in the preset position calculation model; the drive test report contains location information of the second map grid where the first client terminal is located; by matching the second test report with the pre-stored drive test report in the preset position calculation model, a drive test report matching the second test report can be found, and the location information of the second map grid where the first client terminal is located can be obtained therefrom. The location information can help us determine the location of the client more accurately, so as to provide effective support in network planning, optimization and troubleshooting.

[0115] If a road test report that is identical to the second test report except for the location information is matched, the location information in the road test report is used as the target location information of the second test report; if a road test report that is identical to the second test report except for the location information is matched, it means that this drive test report records the same wireless environment information as the second test report. Therefore, using the location information in the drive test report as the target location information of the second test report can make the location information of the second test report more accurate. When the second test report contains more accurate location information, it can better support network planning, optimization, troubleshooting and other aspects, and improve network efficiency and user experience.

[0116] The target location information is added to the second test report to obtain the first test report. The specific location of the client terminal can be determined based on the target location information.

[0117] In practical applications, in order to improve the calculation accuracy of the preset position calculation model, it is necessary to train the preset position calculation model. The training method of the preset position calculation model can be implemented in the following ways, but is not limited to:

[0118] Obtain at least one of the drive test reports within the boundary coordinate range of a training map; the training map is a training map used for map grid division; in order to use the drive test report data to train a preset position calculation model so that the position of a mobile device can be predicted when information such as wireless signal strength is given; the training map refers to a map used for map grid division, and the training map defines the boundary coordinate range of an area; by obtaining at least one drive test report within the boundary coordinate range, data such as wireless signal strength in the area can be obtained; these data are used to train a preset position calculation model so that it can predict the position of the device on the map based on the wireless signal information; such a preset position calculation model has great value in applications such as wireless positioning, navigation and location services, and it can estimate and infer the position through information such as wireless signal strength when the client terminal does not have GPS.

[0119] Preprocessing the at least one road test report to obtain the at least one road test report after processing; the preprocessing includes at least one of deleting damaged road test reports in the at least one road test report, extracting features from the at least one road test report, and normalizing the at least one road test report; the accuracy and robustness of the preset position calculation model can be improved to better predict the position of the mobile device.

[0120] Preprocessing the drive test report includes the following steps: Deleting damaged drive test reports: If a drive test report cannot provide useful information for some reason (such as network connection interruption, signal interference, etc.), then it is invalid. Deleting it from the data set can improve the quality of the training data; Feature extraction: The drive test report contains a lot of information, such as wireless signal strength, frequency, sector identification, etc., but not all features are useful for location prediction. Therefore, it is necessary to extract features from the drive test report, retain features related to location prediction, and remove useless features to reduce the complexity of the model and training time; Normalization: Different features in the drive test report may have different value ranges, which leads to unbalanced weights between features; In order to solve the problem of unbalanced weights between features, the drive test report can be normalized to map the values ​​of different features to the same interval, which helps to improve the accuracy and robustness of the model.

[0121] Through preprocessing, the quality of training data can be improved and the complexity of the model can be reduced, thereby improving the accuracy and robustness of the preset location calculation model, enabling it to better predict the location of the mobile device.

[0122] The at least one processed road test report is formed into a training road test report set; through the training road test report set, the preset position calculation model can learn the position change rules under different wireless signal modes, including signal attenuation, signal propagation characteristics, etc. When new wireless signal data is received, it can make accurate position predictions based on existing training experience.

[0123] Based on the gradient boosting decision tree algorithm, the initial position calculation model is trained using the training drive test report set to obtain the trained preset position calculation model; the training drive test report set is trained using the gradient boosting decision tree algorithm (GradientBoosting Decision Tree, GBDT) to obtain the trained preset position calculation model, the purpose of which is to improve the accuracy and robustness of position prediction.

[0124] GBDT is an integrated learning method that trains multiple decision tree models in series and gradually corrects the errors of the previous tree to obtain a powerful integrated model. In location prediction, the GBDT algorithm can learn the complex relationship between different features and the mapping rules between these features and device locations from the training data, thereby achieving more accurate location prediction.

[0125] A trained preset location calculation model can help mobile devices determine their own locations more accurately and improve the accuracy and reliability of positioning services. This is of great significance for applications such as navigation, location services, and location-based information recommendations, and can improve user experience and service quality. Therefore, the purpose of using the gradient boosting decision tree algorithm to train the training drive test report set to obtain a trained preset location calculation model is to improve the accuracy and robustness of location prediction, thereby improving the positioning service of mobile devices.

[0126] In practical applications, before obtaining the sum of the first quantity, the second quantity, the third quantity, the fourth quantity, and the fifth quantity, it is necessary to divide the map into grids, which can be achieved by but not limited to the following methods: obtaining the boundary coordinates of the target map; the target map is a map for map grid division; the boundary coordinates of the target map are obtained to determine the boundary range of the map, which is the first step in map grid division, and the purpose is to divide the map into multiple grids for more refined map data processing and analysis. Through map grid division, large-scale map data can be divided into small pieces, which is convenient for management, storage and analysis of geographic information, and is also conducive to map visualization and positioning applications.

[0127] Calling a preset map grid division algorithm to perform map grid division on the target map within the boundary coordinates to obtain at least one third map grid; the third map grid is any map grid within the boundary range of the target map; by performing map grid division on the target map, map data can be subdivided into smaller units, which is convenient for more accurate geographic data analysis and processing, and can help better understand the structure and characteristics of the target map, and perform related analysis, application and decision-making.

[0128] As a refinement of step 101, when executing the acquisition of the first quantity sum, it can be implemented in but not limited to the following manner: obtaining the boundary coordinates of the at least one third map grid, and obtaining the boundary coordinates of the preset range of the base station; by obtaining the boundary coordinates of the third map grid, the spatial range and boundaries of different areas in the map can be more accurately understood and described, which helps to perform more detailed analysis, comparison and visualization of geographic data. For example, data from different grid units can be aggregated, counted or subjected to other spatial analysis to obtain deeper insights.

[0129] Determining whether the boundary coordinates of at least one third map grid are within the range of boundary coordinates of a preset range of the base station; determining whether the boundary coordinates of the third map grid are within the preset range of the base station helps to evaluate communication coverage, optimize base station layout, and provide support for data analysis and decision-making, all of which are of great significance for improving communication service quality, enhancing network performance, and optimizing resource allocation.

[0130] If the boundary coordinates of at least one third map grid are within the range of the boundary coordinates of the preset range of the base station, the third map grid is used as the first map grid; the purpose of using the third map grid as the first map grid is to improve the accuracy of spatial analysis, improve data processing efficiency and maintain the consistency of grid data, which helps to achieve more accurate and detailed spatial analysis and calculation, and support related decision-making and planning work.

[0131] The sum of the numbers of the first map grids is calculated to obtain the first sum of the numbers; calculating the sum of the numbers of the first map grids can provide a basis for data statistics and analysis. For example, the situation of the entire area can be understood by counting the data features of each map grid, such as population density, traffic flow, environmental indicators, etc.

[0132] As a refinement of step 101, when executing the obtaining of the second quantity sum, it can be implemented in the following manner but not limited to:

[0133] Obtain the location information in the first test report, and obtain the boundary coordinates of the first map grid; the location information usually includes longitude and latitude or other geographic coordinate information, and the map grid is an area composed of a series of location points (such as longitude and latitude coordinates). When performing geographic data analysis and spatial planning, it is often necessary to correspond the location information to the map grid in order to classify, count, query and other operations on the location information. Therefore, obtaining the location information in the first test report and the boundary coordinates of the first map grid can achieve matching and correspondence between the location information and the map grid.

[0134] Determine whether the location information in the first test report is within the range of the boundary coordinates of the first map grid; when performing geographic data analysis and spatial planning, it is necessary to match and correspond the location information with the map grid. If the location information is within a certain map grid, the map grid can be used for subsequent spatial analysis and processing. Therefore, it is necessary to determine whether the location information is within the range of the map grid so as to correspond it with the map grid.

[0135] If the location information in the first test report is within the range of the boundary coordinates of the first map grid, the first map grid will be used as the second map grid; when performing geographic data processing and spatial planning, it is necessary to match and correspond the location information with the map grid. If the location information is within a certain map grid, the map grid can be used for subsequent spatial analysis and processing. Therefore, if the location information in the first test report is within the range of the boundary coordinates of the first map grid, the map grid can be used as the second map grid for subsequent spatial analysis and processing.

[0136] Calculate the sum of the numbers of the second map grids to obtain the second sum of numbers; calculate the sum of the numbers of the second map grids to obtain a value, which can be used to perform aggregation analysis on the second map grids, such as calculating the total population, total property area, total commercial area, etc. within the second map grids. At the same time, the second sum of numbers can also be used for spatial statistical analysis, such as calculating the number and density of different types of facilities in a certain area.

[0137] In one implementable manner of the disclosed embodiment, based on the road test report, the GBDT algorithm is used for training to obtain a preset position calculation model; based on the preset position calculation model, the second test report is predicted to calculate the position information of the second test report; the second test report of the same time period and the data of the second client terminal that establishes communication with the base station are compared, and the identification information of the second client terminal is backfilled in the second test report; the prediction result data of the backfilled second test report (first test report) is divided into map grids based on the S2 algorithm, and the total number of second client terminals that establish communication with the base station is divided into the second map grid; the data of the second client terminals that establish communication with the base station in the same time period are diffused in a circular area, and are mapped to the second map grid according to the total number of second client terminals that establish communication with the base station, and in proportion. According to the S2 algorithm, the accuracy range of the second map grid is 53 meters to 77 meters, so that the thermal accuracy of the flow of people is improved from 500 meters to 2 kilometers in the base station range to 53 meters to 77 meters.

[0138] Obtain the real-time MME location signaling data of all operator base stations within the scenic area, circle the map area of ​​the target map, and obtain the polygonal boundary coordinates of the target map; use the boundary coordinates to associate the data of the second client terminal that establishes communication with the base station according to the base station, and obtain the number of all base stations within the target map range and the second client terminals associated with the base station; calculate the number of deduplicated second client terminals of each base station as the number of second client terminals of the base station; calculate the location information of all base stations in the target map according to the S2 algorithm; within the range of the target map, draw a circular area with each base station as the center and R as the radius (R value is adjustable, the default setting is 1000 meters), and calculate the number of first map grid lists covered by the circular extension area of ​​each base station based on the S2 algorithm.

[0139] Obtain the target map's drive test report and the second test report, calculate the location information based on the preset location calculation model, obtain the location information of the second test report, and obtain the target map's drive test report reported periodically. The data format is as follows: Figure 3 As shown, Figure 3 A schematic diagram of a data format of a drive test report provided by an embodiment of the present disclosure; based on the GBDT algorithm, model training is performed to obtain a preset position calculation model, wherein the preset position calculation model is dynamically updated according to the reporting period of the drive test report;

[0140] A second test report of the target map is obtained in real time, and the position information is calculated based on a preset position calculation model to obtain a first test report containing the position information.

[0141] Since the first test report is characterized by a wide coverage, but the first test report is sampled, the first test report usually contains only a few tenths of the data of the second client terminal that establishes communication with the base station, and the data of the second client terminal that establishes communication with the base station can be represented as the location information of the base station, which can accurately reflect the heat value of the flow of people within the target map range. Combined with the wide distribution of the first test report and the accurate data of the second client terminal that establishes communication with the base station, accurate calculation of the heat of the flow of people can be achieved.

[0142] For the data of the second client terminal that establishes communication with the base station, a circle is drawn on the map with each base station as the center and R as the radius, such as Figure 4 Corresponding to the first map level grid on the map, Figure 4 A schematic diagram showing a map grid provided in an embodiment of the present disclosure; based on the S2 algorithm, all first map grids covered by a circle within a radius R of each base station in the data of the second client terminal M establishing communication with the base station are calculated, and within the circular area of ​​each base station, the number of second map grids contained in the circular area is calculated as countMr17, and the number of first map grids in the circular area is calculated as totalGrids, and countMr17 / totalGrids is used as the first proportional coefficient S covered by the circular area; the number of people in a single second map grid in the circular area of ​​the base station is num17, and the circular area The sum of the second client terminals of all the second map grids in the domain is sumMr17. Then, within the circular area of ​​this base station, the second proportional coefficient of the number of people in each second map grid can be calculated as s=num17 / sumMr17; and the total number of people in the base station can be calculated from the sum of the number of second client terminals that establish communication with the base station as num14. By calculating each associated and matched second map grid within the circular area of ​​the base station, the thermal value of the second client terminal that establishes communication with the base station is calculated through the proportional mapping coefficient of the second map grid, num17New=num14*s*S.

[0143] For ease of understanding, an example is provided: countMr17=49, totalGrids=102, num14 is 20000, num17 is 80, and sumMr17 is 1000. The above formula can be used to calculate the heat value of the flow of people as (49 / 102)*(80 / 1000)*20000=768.

[0144] In summary, the embodiments of the present disclosure can achieve the following effects:

[0145] The disclosed embodiment combines the characteristics of the first test report that the sampling data is small but the coverage is wide, and the characteristics that the number of second client terminals that establish communication with the base station is accurate and true, and constructs the proportion relationship of the number of people in the second map grid within the preset range of the base station based on the first test report. The number of second client terminals that establish communication with the base station is used, and the proportion relationship of the first test report within the preset range of the base station is used to calculate, and the distribution of the number of second client terminals that establish communication with the base station in the first map grid is obtained, thereby improving the accuracy of the calculation of the heat of the human flow and improving the accuracy of the calculation of the heat of the human flow.

[0146] Corresponding to the above-mentioned early warning method for heat of human flow, the present invention also provides an early warning device for heat of human flow. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, the details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be described in detail in the present invention.

[0147] Figure 5 A schematic diagram of a heat warning device for human traffic provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, including:

[0148] An acquisition unit 31 is used to acquire a first quantity sum, a second quantity sum, a third quantity sum, a fourth quantity sum, and a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of the base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, the third quantity sum is the sum of the quantities of second client terminals that establish communication with the base station, the fourth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station in the target second map grid, and the fifth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station within the preset range;

[0149] A first calculation unit 32 is used to calculate a quotient of the first quantity sum and the second quantity sum to obtain a first proportional coefficient, and to calculate a quotient of the fourth quantity sum and the fifth quantity sum to obtain a second proportional coefficient;

[0150] A second calculation unit 33 is used to calculate the product of the third quantity sum, the first proportional coefficient, and the second proportional coefficient to obtain a crowd flow thermal value corresponding to the target second map grid;

[0151] The output unit 34 is used to output an alarm message when the thermal value of the crowd exceeds a preset warning threshold.

[0152] The early warning device for heat of human flow provided by the present disclosure obtains a first quantity sum, a second quantity sum, a third quantity sum, a fourth quantity sum, and a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of a base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the location of the first client terminal, and the third quantity sum is the sum of the quantities of second map grids within the preset range that are consistent with the base station. the sum of the number of second client terminals that establish communication with the target second map grid, the fourth sum of the number of first client terminals that send the first test report to the base station in the target second map grid, and the fifth sum of the number of first client terminals that send the first test report to the base station within the preset range; the first sum of the number and the second sum of the number are calculated as a quotient to obtain a first proportional coefficient, and the fourth sum of the number and the fifth sum of the number are calculated as a quotient to obtain a second proportional coefficient; the third sum of the number, the first proportional coefficient, and the second proportional coefficient are calculated as a product to obtain a thermal value of the flow of people corresponding to the target second map grid; if the thermal value of the flow of people exceeds a preset warning threshold, an alarm message is output. Compared with the related art, the embodiment of the present disclosure combines the characteristics of the first test report that the sampling data is small but the coverage is wide, and the number of second client terminals that establish communication with the base station is accurate and true, and constructs the proportion relationship of the number of people in the second map grid within the preset range of the base station based on the first test report. The number of second client terminals that establish communication with the base station is used, and the proportion relationship of the first test report within the preset range of the base station is used to calculate, and the distribution of the number of second client terminals that establish communication with the base station in the first map grid is obtained, thereby improving the accuracy of the calculation of the heat of the human flow and improving the accuracy of the calculation of the heat of the human flow.

[0153] Furthermore, in a possible implementation of this embodiment, as Figure 6 As shown, the acquisition unit 31 includes:

[0154] The acquisition module 311 is used to acquire a second test report; the second test report is a test report sent by the first client terminal to the base station, and the second test report does not include location information of a second map grid for locating the first client terminal;

[0155] A calculation module 312, configured to call a preset position calculation model to calculate the position information of the second test report to obtain the first test report;

[0156] A search module 313 is used to search for the total number of first client terminals corresponding to the first detection reports in the target second grid according to the location information in the first test report;

[0157] As module 314, it is used to take the total number of first client terminals corresponding to the first test reports in the target second grid as the fourth total number.

[0158] Furthermore, in a possible implementation of this embodiment, as Figure 6 As shown, the calculation module 312 is also used for:

[0159] Matching the second test report with a pre-stored drive test report in the preset location calculation model; the drive test report includes location information of a second map grid for locating the first client terminal;

[0160] When a drive test report having the same content as the second test report except for the location information is matched, using the location information in the drive test report as the target location information of the second test report;

[0161] The target location information is added to the second test report to obtain the first test report.

[0162] Furthermore, in a possible implementation of this embodiment, as Figure 6 As shown, the calculation module 312 is also used for:

[0163] Acquire at least one of the drive test reports within the boundary coordinate range of a training map; the training map is a training map used for performing map grid division;

[0164] Preprocessing the at least one drive test report to obtain the at least one drive test report after processing; the preprocessing includes at least one of deleting a damaged drive test report in the at least one drive test report, extracting features from the at least one drive test report, and normalizing the at least one drive test report;

[0165] Combining the processed at least one drive test report into a training drive test report set;

[0166] Based on the gradient boosting decision tree algorithm, the initial position calculation model is trained using the training drive test report set to obtain the trained preset position calculation model.

[0167] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the device also includes:

[0168] The acquisition unit 31 is further used to acquire the boundary coordinates of the target map before acquiring the first quantity sum, the second quantity sum, the third quantity sum, the fourth quantity sum, and the fifth quantity sum; the target map is a map for performing map grid division;

[0169] The division unit 35 is used to call a preset map grid division algorithm to divide the target map within the boundary coordinates into map grids to obtain at least one third map grid; the third map grid is any map grid within the boundary range of the target map.

[0170] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the acquisition unit 31 is also used for:

[0171] Acquire the boundary coordinates of the at least one third map grid, and acquire the boundary coordinates of the preset range of the base station;

[0172] Determining whether the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station;

[0173] When the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station, using the third map grid as the first map grid;

[0174] The total number of the first map grids is calculated to obtain the first total number.

[0175] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the acquisition unit 31 is also used for:

[0176] Obtaining location information in the first test report, and obtaining boundary coordinates of the first map grid;

[0177] Determining whether the location information in the first test report is within the range of the boundary coordinates of the first map grid;

[0178] When the location information in the first test report is within the range of the boundary coordinates of the first map grid, using the first map grid as the second map grid;

[0179] The sum of the numbers of the second map grids is calculated to obtain the second sum.

[0180] It should be noted that the above explanation of the method embodiment is also applicable to the device of the embodiment of the present disclosure, and the principle is the same, which is no longer limited in the embodiment of the present disclosure.

[0181] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0182] Figure 7 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0183] like Figure 7 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 402 or a computer program loaded from a storage unit 408 to a RAM (Random Access Memory) 403. Various programs and data required for the operation of the device 400 can also be stored in the RAM 403. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An I / O (Input / Output) interface 405 is also connected to the bus 404.

[0184] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0185] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, CPU (Central Processing Unit), GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs the various methods and processes described above, such as the early warning method for the heat of human flow. For example, in some embodiments, the early warning method for the heat of human flow may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the aforementioned early warning method for thermal energy of human flow by any other appropriate means (for example, by means of firmware).

[0186] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0187] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0188] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing.

[0189] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0190] The systems and techniques described herein may be implemented in a computing system that includes a backend component (e.g., as a data server), or a computing system that includes a middleware component (e.g., an application server), or a computing system that includes a frontend component (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0191] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0192] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0193] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0194] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for early warning of heat of human flow, It is characterized in that include: Obtain a first quantity sum, and obtain a second quantity sum, and obtain a third quantity sum, and obtain a fourth quantity sum, and obtain a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of the base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, the third quantity sum is the sum of the quantities of second client terminals that establish communication with the base station, the fourth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station in the target second map grid, and the fifth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station within the preset range; Calculating a quotient of the first total quantity and the second total quantity to obtain a first proportional coefficient, and calculating a quotient of the fourth total quantity and the fifth total quantity to obtain a second proportional coefficient; The third quantity sum, the first proportional coefficient, and the second proportional coefficient are multiplied to obtain a crowd flow heat value corresponding to the target second map grid; If the heat value of the crowd exceeds the preset warning threshold, an alarm message is output; The obtaining of the fourth quantity sum includes: Obtaining a second test report; the second test report is a test report sent by the first client terminal to the base station, and the second test report does not include location information of a second map grid for locating the first client terminal; Calling a preset position calculation model to calculate the position information of the second test report to obtain the first test report; According to the location information in the first test report, searching for the total number of first client terminals corresponding to the first test report in the target second grid; The total number of first client terminals corresponding to the first test reports in the target second grid is taken as the fourth total number.

2. The method according to claim 1, It is characterized in that The calling of the preset position calculation model to calculate the position information of the second test report to obtain the first test report includes: Matching the second test report with a pre-stored drive test report in the preset location calculation model; the drive test report includes location information of a second map grid for locating the first client terminal; If a drive test report having the same content as the second test report except for the location information is matched, the location information in the drive test report is used as the target location information of the second test report; The target location information is added to the second test report to obtain the first test report.

3. The method according to claim 2, It is characterized in that The training method of the preset position calculation model includes: Acquire at least one of the drive test reports within the boundary coordinate range of a training map; the training map is a training map used for performing map grid division; Preprocessing the at least one drive test report to obtain the at least one drive test report after processing; the preprocessing includes at least one of deleting a damaged drive test report in the at least one drive test report, extracting features from the at least one drive test report, and normalizing the at least one drive test report; Combining the processed at least one drive test report into a training drive test report set; Based on the gradient boosting decision tree algorithm, the initial position calculation model is trained using the training drive test report set to obtain the trained preset position calculation model.

4. The method according to claim 1, It is characterized in that Before obtaining the first quantity sum, obtaining the second quantity sum, obtaining the third quantity sum, obtaining the fourth quantity sum, and obtaining the fifth quantity sum, the method further includes: Obtaining boundary coordinates of a target map; the target map is used to perform map grid division; A preset map grid division algorithm is called to perform map grid division on the target map within the boundary coordinates to obtain at least one third map grid; the third map grid is any map grid within the boundary range of the target map.

5. The method according to claim 4, It is characterized in that The obtaining of the first quantity sum comprises: Acquire the boundary coordinates of the at least one third map grid, and acquire the boundary coordinates of the preset range of the base station; Determining whether the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station; If the boundary coordinates of the at least one third map grid are within the range of the boundary coordinates of the preset range of the base station, use the third map grid as the first map grid; The total number of the first map grids is calculated to obtain the first total number.

6. The method according to claim 5, It is characterized in that The obtaining of the second quantity sum comprises: Obtaining location information in the first test report, and obtaining boundary coordinates of the first map grid; Determining whether the location information in the first test report is within the range of the boundary coordinates of the first map grid; If the location information in the first test report is within the range of the boundary coordinates of the first map grid, the first map grid is used as the second map grid; The sum of the numbers of the second map grids is calculated to obtain the second sum.

7. A heat warning device for human traffic, It is characterized in that include: an acquisition unit, configured to acquire a first quantity sum, a second quantity sum, a third quantity sum, a fourth quantity sum, and a fifth quantity sum, wherein the first quantity sum is the sum of the quantities of first map grids within a preset range of a base station, the first map grid is any map grid within the preset range, the second quantity sum is the sum of the quantities of second map grids within the preset range, the second map grid is any map grid within the preset range that contains a first client terminal that sends a first test report to the base station, the first test report contains location information of the second map grid for locating the first client terminal, the third quantity sum is the sum of the quantities of second client terminals that establish communication with the base station, the fourth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station in a target second map grid, and the fifth quantity sum is the sum of the quantities of first client terminals that send the first test report to the base station within the preset range; a first calculation unit, configured to calculate a quotient of the first quantity sum and the second quantity sum to obtain a first proportional coefficient, and to calculate a quotient of the fourth quantity sum and the fifth quantity sum to obtain a second proportional coefficient; A second calculation unit is used to calculate the product of the third quantity sum, the first proportional coefficient, and the second proportional coefficient to obtain a crowd flow thermal value corresponding to the target second map grid; An output unit, used for outputting an alarm message when the thermal value of the crowd exceeds a preset warning threshold; Wherein, the acquisition unit is further used for: Obtaining a second test report; the second test report is a test report sent by the first client terminal to the base station, and the second test report does not include location information of a second map grid for locating the first client terminal; Calling a preset position calculation model to calculate the position information of the second test report to obtain the first test report; According to the location information in the first test report, searching for the total number of first client terminals corresponding to the first test report in the target second grid; The total number of first client terminals corresponding to the first test reports in the target second grid is taken as the fourth total number.

8. An electronic device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

10. A computer program product, It is characterized in that The invention comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Crowd statistics method, device, equipment and computer-readable storage medium

    CN109214337A

  • Tourist attraction passenger flow information statistical method based on multiple data sources

    CN110418282A

  • Monitoring data processing method and device, computer equipment and storage medium

    CN110929648A

  • Population analysis method and device

    CN111615054A

  • People flow statistical method, device and system, storage medium and computer equipment

    CN112988830A