Data aggregation display method and device for 3D area track thermodynamic diagram
By adopting the data aggregation display method in the 3D area track thermal map, the problem of difficult to take into account both processing efficiency and accuracy in the prior art is solved, and efficient and accurate thermal map display is achieved.
Patent Information
- Application Number
- CN202510235402.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-06-17
AI Technical Summary
The existing trajectory heatmap display method reduces the amount of data by reducing the return frequency of positioning data, and cannot take into account both processing efficiency and accuracy.
The data aggregation and display method of 3D area track heat map is adopted, and the area segmentation and map layer binding is performed based on the 3D model of the target location, and the position coordinates of the positioning device are obtained in real time, and real-time aggregation statistics are performed based on the personnel's residence time in each area to render the heat map in the 3D area model.
By converting the data dimension to the time dimension, reducing the data dimension, improving processing efficiency, and improving the accuracy and display effect of the heat map through the combination of regional map layers and 3D models.
Smart Images

Figure CN120163935A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data visualization, and particularly relates to a method and device for aggregating and displaying 3D area trajectory heat maps. Background Art
[0002] Under the trend of closer connection in the industrial Internet, the requirements for data visualization and intuitiveness are becoming increasingly prominent. Real-time positioning technology is a technology for obtaining the real-time position of personnel based on relevant information of positioning devices. Through devices such as positioning base stations and positioning tags, personnel, vehicles, etc. are positioned. A heat map is a visualization tool used to display the distribution and density of data. Heat maps usually use the change in color depth to represent the data density in different regions. Areas with darker colors represent high data density, while areas with lighter colors represent low data density. A heat map is an intuitive and easy-to-understand data visualization tool that can help people better understand the data distribution and density.
[0003] However, real-time positioning data are all massive data. There are problems of low efficiency in directly displaying heat maps based on massive data. Not only is the processing speed slow and the efficiency low, which affects the experience, but also the memory occupancy is high, and the requirements for computer performance are relatively high. The traditional method is to reduce the data volume by reducing the return frequency of positioning data, but this will reduce the data accuracy.
[0004] Therefore, there is an urgent need to provide a method for aggregating and displaying 3D area trajectory heat maps. Summary of the Invention
[0005] In order to solve the problem that the existing method for displaying trajectory heat maps cannot balance processing efficiency and accuracy by reducing the return frequency of positioning data, an embodiment of the present invention provides a method for aggregating and displaying 3D area trajectory heat maps.
[0006] On the one hand, a method for aggregating and displaying 3D area trajectory heat maps is provided. The method includes:
[0007] Based on the 3D model of the target location, perform area segmentation and map layer binding;
[0008] Real-time obtain the position coordinates uploaded by the positioning devices carried by each person;
[0009] Based on the residence time of each person in each area, perform real-time aggregation statistics to render a heat map in the 3D area model.
[0010] On the other hand, a device for aggregating and displaying 3D area trajectory heat maps is provided, which is used to implement the steps described in any method embodiment of the specification. The device includes:
[0011] A segmentation unit for performing area segmentation and map layer binding based on a 3D model of a target location;
[0012] An acquisition unit for acquiring in real time the position coordinates uploaded by positioning devices carried by each person;
[0013] A display unit for performing real-time aggregation statistics based on the residence time of each person in each area, so as to render a heat map in the 3D area model.
[0014] On the other hand, a computer device is provided, which includes a memory and a processor. The memory is used to store a computer program, and the processor is used to execute the computer program stored on the memory to implement the steps of the above-mentioned method.
[0015] On the other hand, a computer-readable storage medium is provided. A computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned method are implemented.
[0016] On the other hand, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method are implemented.
[0017] The technical solution provided by the present invention can at least bring the following beneficial effects:
[0018] By adopting the trajectory area time segmentation method, the data dimension is converted to the time dimension. Through aggregation statistics of the residence time and then conversion of the heat map data density, it is possible to not only reduce the data dimension and improve the processing efficiency, but also improve the accuracy of the heat map. And through the combination of the area map layer and the 3D model, a good effect can also be achieved for the display of the heat map on the 3D model. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0020] Figure 1 It is a flowchart of a method for data aggregation display of a 3D area trajectory heat map provided by an embodiment of the present invention;
[0021] Figure 2 It is a technical roadmap of data aggregation display of a 3D area trajectory heat map provided by an embodiment of the present invention;
[0022] Figure 3It is a structural diagram of a data aggregation display device for a 3D area trajectory heat map provided by an embodiment of the present invention;
[0023] Figure 4 It is a hardware architecture diagram of a computer device provided by an embodiment of the present invention. Detailed implementation manners
[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0025] The following describes the specific implementation manners of the above concepts.
[0026] Please refer to Figure 1 , a data aggregation display method for a 3D area trajectory heat map provided by an embodiment of the present invention, the method includes:
[0027] Step 100: Based on the 3D model of the target location, perform area segmentation and map layer binding;
[0028] Step 102: Real-time obtain the position coordinates uploaded by the positioning devices carried by each person;
[0029] Step 104: Based on the residence time of each person in each area, perform real-time aggregation statistics to render a heat map in the 3D area model.
[0030] In the embodiments of the present invention, the trajectory area time segmentation method is adopted to convert the data dimension to the time dimension. By aggregating and statistically calculating the residence time and then performing the conversion of the heat map data density, it can not only reduce the data dimension and improve the processing efficiency, but also improve the accuracy of the heat map. And through the combination of the area map layer and the 3D model, a good effect can also be achieved for the heat map display on the 3D model.
[0031] The following describes Figure 1 the execution manners of the respective steps shown.
[0032] Regarding step 100:
[0033] Reference can be made to Figure 2 the schematic diagram of the technical solution, in some embodiments, step 100 may include:
[0034] Perform model extraction and region segmentation on the 3D model of the target location to determine the region tree structure; wherein, the region tree structure contains the coordinate ranges of each region obtained by segmentation.
[0035] Obtain the map layer of each region, and bind the region and the corresponding map layer to generate region information.
[0036] In this embodiment, a 3D model of the target location can be created using 3D modeling software, and then the region tree structure can be obtained through model extraction and region segmentation algorithms. Region segmentation algorithms can include density-based spatial clustering of applications with noise (DBSCAN), region segmentation algorithms based on edge detection, etc.
[0037] Obtain the map layer of each region, and bind the region and the corresponding map layer to generate region information.
[0038] It can be understood that by segmenting the regions and performing proportional conversion based on the time difference between a person leaving and entering, heat map data can be obtained quickly and efficiently. Region segmentation is the statistical aggregation basis for this solution. Compared with the direct display of traditional massive positioning data, the processing speed can be further improved by using multi-threaded processing and other methods.
[0039] Continue to refer to Figure 2 , in some embodiments, before real-time obtaining the position coordinates uploaded by the positioning devices carried by each person, after performing region segmentation and map layer binding, it further includes:
[0040] Based on the binding relationship between the region and the map layer, configure the map layer for each region on the front-end web platform to obtain a 3D region model.
[0041] Configure each positioning device on the front-end web platform and bind the positioning device and the person.
[0042] In this embodiment, configuring the regions into the system and establishing a one-to-one correspondence between the region information and the 3D model can improve the display effect of the heat map on the 3D model.
[0043] In some embodiments, it further includes: configuring positioning base stations on the 3D position coordinates of the corresponding regions on the front-end web platform to determine the 3D position coordinates of the positioning base stations; the 3D position coordinates include longitude and latitude coordinates and altitude position coordinates.
[0044] Since there are many buildings in the target location, the longitude and latitude positioning accuracy of people is relatively high, but the altitude position positioning accuracy is relatively poor. Therefore, in order to improve the altitude position positioning accuracy, positioning base stations can also be configured on the 3D position coordinates of the corresponding regions.
[0045] Regarding step 102:
[0046] In some embodiments, step 102 may include:
[0047] Based on the 3D position coordinates of the positioning base station, each positioning device corrects the altitude position coordinates in real time;
[0048] The positioning device uploads the real-time positioning data of the personnel to the time series database in the background via the positioning base station; wherein, the positioning data includes longitude and latitude coordinates and altitude position coordinates.
[0049] In this embodiment, each positioning device can correct the altitude position coordinates by comparing the azimuth distance from the positioning base station, improving the accuracy of the real-time positioning data uploaded by the positioning device.
[0050] Regarding step 104:
[0051] In some embodiments, step 104 may include:
[0052] Based on the real-time positioning data uploaded by each positioning device, determine the regional positions where each person is located;
[0053] Based on the changes in the regional positions where each person is located, store the personnel ID, regional number, entry time, and departure time of the personnel in the time series database, and at the same time, update the residence time of each person in each region in real time;
[0054] Based on the entry times statistics in each region and the real-time residence time of each person, calculate the heat value of each region in real time;
[0055] Map the heat value of each region to the HSV color model to render a heat map in the 3D region model.
[0056] In this embodiment, based on the real-time positioning data uploaded by each positioning device and the regional information generated in step 100, the regional positions where each person is located can be determined. It can be understood that the personnel ID, regional number, entry time, and departure time of the personnel can be stored in the time series database in real time, and at the same time, the residence time of each person in each region is updated in real time. Aggregation statistics based on the entry times statistics in each region and the real-time residence time of each person can avoid aggregating and statistically processing a large amount of positioning data, improving the processing efficiency. By processing the massive coordinate data of the statistical heat map in another way, through regional segmentation and regional residence time statistical calculation, the heat data of the current personnel (current device) in this region can be effectively obtained. Compared with the traditional method of reducing the data volume by reducing the return frequency of positioning data, this embodiment can ensure the effectiveness and accuracy of the data.
[0057] In addition, by changing the value of H in the HSV color model from 240° to 0°, setting S to 100%, and setting the V value to the calculated heat value, the HSV color model mapping of the heat value of each area can be realized, and the real-time rendering of the heat map of each area can be completed.
[0058] In some embodiments, the heat value of each area is calculated in real time by the following formula:
[0059]
[0060] In the formula, H i (t) is the heat value of area i at time t, A i is the area of area i, N i (t) is the total number of people entering area i before time t, is the real-time residence time of the kth person in area i, is the time when the kth person enters area i, is the statistical end timestamp of the kth person. If the person is still in area i, it is set to the current system time. λ is a time decay coefficient used to reflect the weight of historical data, and W i is the area weight.
[0061] In this embodiment, the heat value H i (t) can reflect the residence duration and timeliness of people. The entry time and departure time of the kth person in area i can be calculated by parsing the time string (such as "08:05—08:45"). If the person leaves area i, then it is the departure time parsed from the string. If the person is still in area i, it is set to the current system time to update the residence time of each person in each area in real time. The time decay coefficient λ ≥ 0 is used to reflect the weight of historical data. Based on the length of the departure time of historical people leaving area i, the time decay coefficient λ is adjusted. For example, currently λ = 0.1, and 10 minutes later, the time decay coefficient of this person drops to 36.8%. In addition, by setting the area weight W i , key areas can be distinguished on the heat map. For example, the area weight W i of the computer room = 2.0, and the area weight W i of the corridor = 1.0. Therefore, the calculation formula of this embodiment can not only quickly and efficiently convert the positioning data into heat map data by calculating the residence time of the positioning device (positioning people) in the area, but also further improve the accuracy of the heat map by setting the time decay coefficient and the area weight.
[0062] Please refer to Figure 3, an embodiment of the present invention provides a data aggregation display device for a 3D area trajectory heat map, which is used to implement the steps of any method embodiment in the specification. The device includes:
[0063] A segmentation unit 301, configured to perform area segmentation and map layer binding based on a 3D model of a target location;
[0064] An acquisition unit 302, configured to acquire in real time the position coordinates uploaded by positioning devices carried by each person;
[0065] A display unit 303, configured to perform real-time aggregation statistics based on the residence time of each person in each area, so as to render a heat map in the 3D area model.
[0066] In an embodiment of the present invention, the segmentation unit 301 is configured to execute:
[0067] Perform model extraction and area segmentation on the 3D model of the target location to determine an area tree structure; wherein, the area tree structure contains the coordinate range of each segmented area;
[0068] Obtain the map layer of each area, and bind the area and the corresponding map layer to generate area information.
[0069] In an embodiment of the present invention, the segmentation unit 301 is further configured to execute:
[0070] Configure a map layer for each area on the front-end web platform based on the binding relationship between the area and the map layer to obtain a 3D area model;
[0071] Configure each positioning device on the front-end web platform, and bind the positioning device and the person.
[0072] In an embodiment of the present invention, the segmentation unit 301 is further configured to execute configuring a positioning base station on the 3D position coordinates of the corresponding area on the front-end web platform to determine the 3D position coordinates of the positioning base station; the 3D position coordinates include longitude and latitude coordinates and height position coordinates;
[0073] Further, the acquisition unit 302 is configured to:
[0074] Based on the 3D position coordinates of the positioning base station, each positioning device corrects the height position coordinates in real time;
[0075] The positioning device uploads the real-time positioning data of the person to the time series database in the background via the positioning base station; wherein, the positioning data includes longitude and latitude coordinates and height position coordinates.
[0076] In an embodiment of the present invention, the display unit 303 is configured to execute:
[0077] Based on the real-time positioning data uploaded by each positioning device, determine the regional locations where each person is located;
[0078] Based on the changes in the regional locations where each person is located, store the person ID, regional number, entry time, and departure time of the person in the time-series database, and at the same time, update the residence time of each person in each region in real time;
[0079] Based on the entry times statistics in each region and the real-time residence time of each person, calculate the heat values of each region in real time;
[0080] Map the heat values of each region to the HSV color model to render a heat map in the 3D region model.
[0081] In an embodiment of the present invention, the heat values of each region in the display unit 303 are calculated in real time through the following formula:
[0082]
[0083] In the formula, H i (t) is the heat value of region i at time t, A i is the area of region i, N i (t) is the total number of people who entered region i before time t, is the real-time residence time of the kth person in region i, is the time when the kth person entered region i, is the statistical end timestamp of the kth person. If the person is still in region i, let it be the current system time, λ is the time decay coefficient used to reflect the weight of historical data, and W i is the regional weight.
[0084] It should be noted that: for the data aggregation display device of the 3D region trajectory heat map provided in the above embodiment, only the above division of each functional unit is used for illustration. In actual applications, the above functions can be allocated to different functional units according to needs, that is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the above device embodiment and method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be elaborated here.
[0085] The embodiments of the present application also provide a computer device. Please refer to Figure 4 , this computer device includes a processor and a memory. At least one instruction, at least one program, a code set, or an instruction set is stored in the memory. At least one instruction, at least one program, a code set, or an instruction set is loaded and executed by the processor to implement the data aggregation display method of the 3D region trajectory heat map provided in each of the above method embodiments.
[0086] Embodiments of the present application further provide a computer-readable storage medium, on which at least one instruction, at least one program segment, a code set or an instruction set is stored, and the at least one instruction, at least one program segment, the code set or the instruction set is loaded and executed by a processor to implement the method for aggregating and displaying a 3D area trajectory heat map provided by each of the above method embodiments.
[0087] Embodiments of the present application further provide a computer program product, which includes a computer program. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method for aggregating and displaying a 3D area trajectory heat map according to any one of the above embodiments.
[0088] For convenience of description, when describing the above system or device, various modules or units are described separately according to functions. Of course, when implementing the present application, the functions of each unit can be implemented in one or more software and / or hardware.
[0089] From the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiments of the present application.
[0090] Finally, it should be noted that in this document, relational terms such as first, second, third, and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variation thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.
[0091] The above are only the preferred embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.
Claims
1. A data aggregation display method for a 3D area trajectory heat map, characterized in that: include: Based on the 3D model of the target location, perform area segmentation and map layer binding; Obtain the location coordinates uploaded by the positioning devices carried by each person in real time; Real-time aggregate statistics are collected based on the time each person spends in each area to render a heat map in the 3D area model.
2. The method according to claim 1, characterized in that The region segmentation and map layer binding based on the 3D model of the target location include: Extracting the model and segmenting the regions of the 3D model of the target location to determine a regional tree structure; wherein the regional tree structure contains the coordinate range of each region obtained by segmentation; Get the map layer of each area, bind the area and the corresponding map layer, and generate area information.
3. The method according to claim 1, characterized in that Before the real-time acquisition of the position coordinates uploaded by the positioning device carried by each person, and after the region segmentation and map layer binding, the method further includes: Based on the binding relationship between the region and the map layer, a map layer is configured for each region on the front-end web platform to obtain a 3D region model; Each positioning device is configured on the front-end web platform, and the positioning device and the personnel are bound.
4. The method according to claim 3, characterized in that Also includes: Configure a positioning base station on the 3D position coordinates of the area corresponding to the front-end web platform, and determine the 3D position coordinates of the positioning base station; the 3D position coordinates include longitude and latitude coordinates and altitude position coordinates; Real-time acquisition of location coordinates uploaded by the positioning devices carried by each person, including: Based on the 3D position coordinates of the positioning base station, each positioning device corrects the height position coordinates in real time; The positioning device uploads the real-time positioning data of the personnel to the time series database of the background via the positioning base station; wherein the positioning data includes longitude and latitude coordinates and altitude position coordinates.
5. The method according to claim 1, characterized in that The real-time aggregation statistics based on the stay time of each person in each area are used to render a heat map in the 3D area model, including: Determine the regional location of each person based on the real-time positioning data uploaded by each positioning device; Based on the changes in the location of each person, the person ID, area number, entry time and exit time of the person are stored in the time series database, and the stay time of each person in each area is updated in real time; Based on the statistics of the number of people entering each area and the real-time residence time of each person, the thermal value of each area is calculated in real time; The thermal value of each area is mapped to the HSV color model to render the thermal map in the 3D area model.
6. The method according to claim 5, characterized in that The thermal value of each area is calculated in real time using the following formula: In the formula, H i (t) is the thermal value of area i at time t, A i is the area of region i, N i (t) is the total number of people entering area i before time t, is the real-time residence time of the kth person in area i, is the time when the kth person enters area i, is the statistical end timestamp of the kth person. If the person is still in area i, Set as the current system time, λ is the time decay coefficient used to reflect the weight of historical data, W i is the regional weight.
7. A data aggregation display device for a 3D area trajectory heat map, used to implement the steps of any of the methods described in claims 1 to 6, characterized in that: include: A segmentation unit, used to perform area segmentation and map layer binding based on the 3D model of the target location; An acquisition unit, used to acquire the position coordinates uploaded by the positioning device carried by each person in real time; The display unit is used to perform real-time aggregate statistics based on the retention time of each person in each area, so as to render a heat map in the 3D area model.
8. A computer device, characterized in that: The computer device includes a memory and a processor, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the steps of any one of the methods described in claims 1-6.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.