A people flow heat map generation method and system based on mobile communication data

By training a location model and using adaptive grid hierarchy determination, the problem of mismatch between grid granularity and sample support in mobile communication network data was solved, and the accurate presentation and verification of terminal equivalents were achieved.

CN123181780APending Publication Date: 2026-11-27湖南省通信网络保障中心
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611458678.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-18
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for generating heat maps of pedestrian flow using mobile communication network data suffer from problems such as mismatch between grid granularity and sample support, data fluctuations in unallocated areas, and the inability to identify missing data, resulting in unrecognizable deviations in the output results.

Method used

The location of network measurement reports is predicted by training a location model, and the grid level is adaptively determined. The output level is determined step by step according to the sample size threshold. The terminal equivalent without location data is retained in the coarse grid to ensure that the output of each level is consistent with the terminal equivalent at the base station level.

Benefits of technology

It achieves terminal equivalent presentation with grid granularity consistent with sample size range, avoids estimation errors at fine grid levels, and ensures the verifiability and accuracy of output results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181780A_ABST
    Figure CN123181780A_ABST
Patent Text Reader

Abstract

The application discloses a kind of people flow heat map generation method and system based on mobile communication data, belong to mobile communication data processing technical field.The method is obtained by mobility management signaling deduplication base station level terminal equivalent;With the minimum drive test data with position label training position model, the network measurement report position is predicted and mapped to S2 fine grid;According to the proportion of spatial coverage and internal proportion, terminal equivalent is distributed to fine grid;At least two S2 coarse grid levels from fine to coarse are set above fine grid level, and the sample size threshold is determined by 2 times increment, and the grid with insufficient sample size is rolled up to parent grid output;Remaining terminal equivalent is retained in coarse grid according to its bearing level, not distributed according to grid number or area average, and not extrapolated according to measured terminal equivalent density, so that the sum of output and retention of each level is equal to base station level terminal equivalent, solve the problem that heat map granularity and position evidence support range are inconsistent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to mobile communication data processing and geospatial analysis technologies, specifically to a method and system for generating regional pedestrian flow heat maps using mobility management signaling, network measurement reports, and minimized drive test data. Background Technology

[0002] Mobile terminals generate mobility management signaling and radio measurement records during access, location updates, service establishment, handover, or periodic measurement processes. By performing temporal windowing and spatial aggregation on these records, the distribution of mobile terminals within a region can be obtained.

[0003] Existing methods for analyzing pedestrian flow thermal images primarily utilize video or thermal imaging data, satellite positioning data, and mobile communication signaling data. Video and thermal imaging methods rely on the deployment density and identification capabilities of field equipment; satellite positioning data only covers terminals that actually generate location information; mobile communication signaling can cover a large number of online terminals, but typically can only determine the base station or cell to which the terminal is connected.

[0004] The actual coverage area of ​​a base station is affected by network standard, frequency band, transmission power, antenna orientation, as well as terrain and buildings. If the latitude and longitude of the base station are used directly to represent the location of all terminals under that base station, the heat map value will be concentrated at the base station location and cannot reflect the relative spatial distribution within the coverage area.

[0005] Some records in MDT data contain both radio measurement fields and location tags, which can be used to train predictive models that translate radio measurement features into location coordinates. MR data contains radio measurement values ​​from the primary serving cell and neighboring cells, covering a wide area, but not every record has directly usable location coordinates. MME data can be used to count the number of anonymous terminals at the base station or cell level, but its spatial granularity is limited by the base station coverage area.

[0006] Therefore, it is necessary to refine the MME signaling statistics using spatial distribution information without directly using the number of MR or MDT sampling records as the total number of terminals. However, existing refinement methods still have the following shortcomings: First, the number of base station-level terminals is usually allocated all at once according to a predetermined fixed grid level. For areas with sparse effective measurement records, the fixed grid level is still used for output, so that a few sampling records can form isolated high-value grids, and the spatial granularity presented by the heatmap does not match the actual sample support level. Second, for the parts that are not allocated to fine grids due to not being included in the coverage ratio, they are either directly discarded, causing the total amount of the area to fluctuate with the number of effective measurement records, or they are allocated to grids lacking location basis according to the number of grids or grid area, injecting fixed values ​​unrelated to the actual flow of people into the area. Third, no verifiable constraint is set on whether the sum of the output of each level and the unallocated amount equals the total statistical amount of the base station, so that data missingness is manifested as changes in the flow of people during the calculation process and cannot be identified. To this end, the present invention adaptively determines the output grid level of each region according to the sample support before output, determines the grid level of the unallocated part without estimating its distribution, and makes the sum of the output quantity of each level and the retention quantity of each level equal to the base station level terminal equivalent. Summary of the Invention

[0007] The technical problem this invention aims to solve is that network measurement report data and minimized drive test data in mobile communication networks are both sampled data. Their spatial sample size distribution varies with the number of terminals, terminal models, network standards, and service activity within the area. When allocating base station-level terminal equivalents according to a fixed single grid level, the terminal equivalents of some grids are supported by only a very small number of sampled records, resulting in a mismatch between the spatial granularity and the sample size range of the location evidence supporting those values. If terminal equivalents within the same base station coverage area that lack location data are discarded, the total amount for that area fluctuates depending on the number of valid measurement records. If allocated according to the number of grids or grid area, that area is injected with values ​​unrelated to actual pedestrian traffic. The direction and magnitude of the deviations produced by these two processing methods are unidentifiable in the output results. These problems stem from applying the same output granularity and allocation rules to areas with varying degrees of location evidence support. This is a data processing problem arising from the spatialization of mobile communication network measurement data, rather than an interpretation or arbitrary specification of the data processing results.

[0008] To address the aforementioned technical problems, the technical means employed in this invention are executed by computer equipment and applied to mobility management signaling data, network measurement report data, and minimized drive test data generated during terminal access, location updates, handover, and periodic measurement processes in mobile communication networks. The invention trains a location model based on the correspondence between wireless measurement features and location tags, and predicts the location recorded in the network measurement report accordingly. The prediction results are mapped to a hierarchical spatial grid. Within the same grid hierarchy, the output level of each grid is determined progressively from fine to coarse using a sample size threshold determined by the number of samples per unit side length and increasing by a factor of 2 with the unit side length. Grids that do not meet the threshold of their current level are aggregated into finer grids and then aggregated to the next higher-level parent grid based on the actual measurement results. The remaining terminal equivalents without location data are included in the coarse grid retention amount of the corresponding level according to the level of their ancestor grid, and a total quantity check is performed based on the base station-level terminal equivalents. The technical effect achieved by the above data processing is that the granularity of each part of the output terminal equivalent data is consistent with the sample size range of the location evidence supporting that part's value. Parts lacking location evidence are presented with a coarse-grid retention value instead of generating fine-grid level estimates. The sum of the terminal equivalent outputs at each level and the sum of the coarse-grid retention values ​​at each level equal the base station-level terminal equivalent, thus making it verifiable. This effect is determined by the data processing process and the structure of the output data itself, rather than by the way the output results are interpreted.

[0009] For ease of understanding, the symbols in this specification and claims are represented in the following uniform manner: the subscript and superscript are written sequentially after the variable body, for example, N b,t N represents the base station-level terminal equivalent of base station b within statistical window t. b,t res This indicates the remaining terminal equivalent that has not been subdivided to a fine grid; the subscripts b, g, t, l, and A represent the base station, fine grid, statistical window, grid level, and grid, respectively; the superscript MR indicates that there is a valid MR location prediction result; the superscript res indicates the remaining quantity; the superscript (l) indicates the l-th level; multiple items can be listed side-by-side in the superscript of the same symbol, separated by commas, and all items listed have the same meaning; G b,t G represents the set of fine grids within the coverage area of ​​base station b in statistical window t. b,t MR U represents the subset of data containing valid MR location predictions. b,t (A) represents the set of fine meshes aggregated into mesh A that are not output at a finer level, and |·| represents the number of elements in the set; the predicted coordinates of the location model are denoted as c. i,d pre The superscript "pre" indicates that it is a model prediction; V b,t (l) This represents the set of fine grids lacking MR location prediction data included in the l-th level, and the fine grids it contains are related to U.b,t (A) They do not intersect; the remaining symbols are defined where they first appear.

[0010] The mobility management signaling data referred to in this invention includes signaling records related to the Mobility Management Entity (MME) in fourth-generation mobile communication networks, as well as corresponding location management signaling records in second-generation, third-generation, or later network standards that can represent the location relationship, handover relationship, or camping relationship between a terminal and a cell. For ease of explanation, the mobility management signaling data used to count the total number of anonymous users at the base station level will be referred to as MME data, the network measurement report (MR) data will be referred to as MR data, and the minimized drive test (MDT) data will be referred to as MDT data. All the above abbreviations in this specification refer to data that has been legally authorized, adequately anonymized, and standardized in terms of fields.

[0011] In this invention, "terminal equivalent" refers to the number of mobile terminals obtained after deduplication according to anonymous terminal identifiers within a statistical window; "people flow heat value" refers to the distribution result of terminal equivalents in the spatial grid. When it is not possible to deduplicate terminals across cells, the output result represents the relative heat between different grids and is not used as the result of natural person population statistics.

[0012] To address the issue of coarse spatial granularity in base station-level signaling statistics, this invention utilizes MDT data to train a location model, predicts the location of MR records based on the location model, and uses the relative distribution of MR records in the S2 fine grid as the allocation basis to allocate the base station-level terminal equivalents obtained from MME data statistics to the fine grid.

[0013] For areas within the base station coverage area without valid MR records, this invention does not classify them as zero-terminal areas, but instead retains the corresponding terminal equivalent in the coarse grid. This utilizes the relative spatial distribution provided by MR data while avoiding the loss of base station-level terminal equivalent due to insufficient sampling records. Furthermore, this invention sets at least two S2 coarse grid layers arranged from fine to coarse above the S2 fine grid layer. The S2 fine grid layer and the at least two S2 coarse grid layers constitute a grid layer sequence, and the output grid layer for each region is determined step-by-step according to sample support: grids whose sample size meets the sample size threshold of this layer are output at this layer; grids that do not meet the threshold are not output separately, but the sample size of the fine grids they aggregate is rolled up to the next higher-level parent grid for merging and statistics, rolling up step-by-step until the coarsest layer; during rolling up, the actual calculated values ​​of the aggregated fine grids are summed, without re-dividing according to the number of grids or grid area. The remaining terminal equivalent is included in the coarse grid retention amount of the corresponding layer according to the layer where its ancestor grid is located, and is not output as a fine grid layer value for fine grids lacking MR location prediction basis. Therefore, different regions in the same generated heatmap data can be presented with different grid levels, and the sum of the terminal equivalent output of each level and the sum of the coarse grid retention of each level are equal to the base station-level terminal equivalent of the base station.

[0014] The system of this invention includes a data access module, an MDT sample construction module, a location model training and prediction module, an MME terminal equivalent calculation module, an S2 spatial grid module, an MR fine grid distribution module, an adaptive granularity output module, and a terminal equivalent fusion calculation module. The output of the data access module is connected to the MDT sample construction module, the MME terminal equivalent calculation module, and the MR fine grid distribution module, respectively, to provide them with cleaned data. The output of the MDT sample construction module is connected to the location model training and prediction module. The output of the location model training and prediction module is connected to the MR fine grid distribution module, to provide the location prediction results of the MR records. The output of the S2 spatial grid module is connected to the MR fine grid distribution module and the adaptive granularity output module, respectively, to provide the grid division results and the grid hierarchy sequence. The output of the MR fine grid distribution module is connected to the adaptive granularity output module, to provide the sample size of each fine grid. The adaptive granularity output module is used for... In the grid hierarchy sequence, all grid levels except the coarsest are determined step by step from fine to coarse. The sample size of the fine grid aggregated by the grids whose sample size does not meet the sample size threshold of the current level is rolled up to the parent grid of the next higher level for merging and statistics. The terminal equivalent carried by each level of output grid is determined by the sum of the actual terminal equivalent calculated by the aggregated fine grid according to the spatial coverage ratio and the internal proportion. The sample size threshold is determined by taking the same value for the number of samples per unit side length in each grid level. The output ends of the MME terminal equivalent calculation module, the MR fine grid distribution module and the adaptive granularity output module are respectively connected to the terminal equivalent fusion calculation module to provide the base station level terminal equivalent, fine grid distribution ratio and output grid division results of each level. The terminal equivalent fusion calculation module uses the base station-level terminal equivalent as the total benchmark. It calculates the terminal equivalent contribution of each fine grid according to the spatial coverage ratio and internal proportion. The remaining terminal equivalent that is not allocated to the fine grid is included in the coarse grid retention of the corresponding level according to the ancestor grid of the fine grid that lacks MR location prediction basis. The remaining terminal equivalent that does not belong to any grid output in the previous level is retained in the coarsest grid level. The remaining terminal equivalent is not evenly distributed to the fine grid that lacks MR location prediction basis. That is, the remaining terminal equivalent is not evenly distributed according to the number or area of ​​the fine grid that lacks MR location prediction basis, nor is it extrapolated according to the measured terminal equivalent density of the fine grid that has MR location prediction basis. The sum of the terminal equivalent output of each level and the sum of the coarse grid retention of each level are equal to the base station-level terminal equivalent.

[0015] The data access module receives MME data, MR data, MDT data, and base station engineering parameters. MME data includes event time, serving cell, and anonymous terminal identifier; MR data includes event time, serving cell, primary serving cell measurement value, and available neighbor cell measurement value; MDT data includes radio measurement fields and location tags common to MR data; and base station engineering parameters include cell identifier and base station location.

[0016] Mobility management signaling from different network standards is converted into unified time, serving cell, and anonymous terminal fields for subsequent deduplication and statistical purposes.

[0017] Data undergoes validity checks before being included in calculations. Records with unresolved event times, empty serving cells, or serving cells that cannot be matched in the base station configuration are excluded from subsequent calculations. Duplicate signaling and duplicate MR records within the same statistical window are deleted based on record identifier, event time, and measurement field.

[0018] The system divides continuous data into statistical windows based on the recorded event time. For example, a 5-minute window can be used; the actual window length can be set according to the data update cycle. MME data and MR data are only included in the same fusion calculation when the window numbers are the same and the serving cells can be associated.

[0019] The MDT sample construction module selects MDT data for the target area within the training timeframe. For example, it uses data from the month preceding the prediction date and updates the model every 7 days. Training samples should have valid location labels, serving cell identifiers, and the radio measurement fields required by the model; if neighboring cell measurement fields are missing, they are filled with missing markers determined during the training phase.

[0020] The model input features include the Reference Received Power (RSRP), Reference Received Quality (RSRQ), and Timing Advance (TA) of the primary serving cell, as well as the RSRP and RSRQ of the selected neighboring cells. For example, neighboring cells that appear in less than 1% of the training samples are removed, and then no more than 30 neighboring cells are selected based on their average field strength from high to low. The same neighboring cell order is used in both the training and prediction phases.

[0021] Before training, check the location labels, serving cells, and radio measurement fields of the MDT samples. For records whose radio measurement characteristics deviate significantly from the distribution of samples in the same area, the local outlier method can be used to identify them and exclude them from this training set; the original MDT records and location labels are not modified.

[0022] The location model training and prediction module uses Gradient Boosting Decision Tree (GBDT) to establish a regression model from wireless measurement features to location coordinates. Before training, the MDT location labels are converted from latitude and longitude to metric projected coordinates, and eastward and northward coordinate regressors are trained separately. The model input uses only the wireless measurement fields common to both MDT and MR data. The projected coordinates output by the model are inversely converted to latitude and longitude before being S2 grid encoded.

[0023] Let v be the wireless feature vector of the i-th training sample. i The actual eastward and northward coordinates are c i,E and c i,N For coordinate dimensions d∈{E,N}, the GBDT prediction model is expressed as equation (1):

[0024] (1)

[0025] Where i is the training sample number; c i,d pre F represents the predicted coordinates of dimension d, in meters; d,0 The initial predicted value is given in meters for the corresponding coordinate dimension; M is the number of improvement iterations, dimensionless; η is the learning rate, dimensionless; f d,m This is the regression tree generated in the m-th round.

[0026] After the model training is completed, location prediction is performed on MR records that use the same wireless measurement fields. Records lacking serving cell, primary serving cell measurements, or other necessary fields for the model are not included in the prediction; records whose predicted locations exceed the coverage area of ​​the corresponding base station are marked as abnormal and are not included in the spatial coverage ratio calculation.

[0027] The MME terminal equivalent calculation module deduplicates anonymous terminal identifiers according to the statistical window and base station. Before calculation, it organizes the service records of the same anonymous terminal according to the event time, deletes duplicate records, and processes ping-pong handovers and continuous service segments between adjacent cells. After processing, it counts the number of anonymous terminals corresponding to each base station, obtaining the base station-level terminal equivalent of that base station in the statistical window t, denoted as N. b,t If the actual data cannot identify the same anonymous terminal across cells, then deduplication is performed separately for each cell, and the output is marked as the base station's contribution heat index.

[0028] The S2 spatial grid module organizes thermal data using a hierarchical grid system. It organizes the thermal data according to an S2 fine grid level and at least two S2 coarse grid levels above the fine grid level. The fine grid level and the at least two coarse grid levels form a grid hierarchy sequence arranged from fine to coarse. For example, Level 17 represents the fine grid for terminal equivalent allocation, Level 16 and Level 15 are used as intermediate grid levels, and Level 14 represents the coarsest base station-level coarse grid. The typical side length of a Level 17 cell is approximately tens of meters. This value only indicates the spatial discrete granularity of the thermal data and does not necessarily mean that the location model will achieve the same prediction accuracy. This grid hierarchy sequence is used to determine the output grid level for each region based on sample support, and to determine the sample size threshold and the carrying grid level for the remaining terminal equivalent, as described later.

[0029] The S2 grid has defined inclusion and side length relationships between its various levels. Taking Level 14 to Level 18 as examples, their typical cell side lengths are approximately 563 meters, 281 meters, 141 meters, 70 meters, and 35 meters, respectively. The side length ratio between adjacent levels is 2, and the area ratio is 4. Each parent grid contains exactly 4 child grids. Accordingly, a Level 14 grid contains 64 Level 17 grids, and a Level 16 grid contains 4 Level 17 grids. These inclusion relationships are used for lossless aggregation of terminal equivalents between different granularities within the same region, and for determining the sample size threshold and the grid level that carries the remaining terminal equivalents (described later).

[0030] For each base station, a coverage area is constructed with the base station location as the center and a coverage radius of 1000 meters. If a network planning coverage polygon is available, it is used preferentially. The S2 area coverage algorithm outputs a set of Level 17 grids intersecting with the base station coverage area, and records the grid number (S2CellId) and center point latitude and longitude of each grid.

[0031] The MR fine-grid distribution module maps valid MR records for location prediction to Level 17 grids. When MR and MME association can be performed using anonymous identifiers, deduplication is performed within the grid based on the anonymous terminal; when user-level association cannot be performed, the relative proportion between grids is calculated based on the number of valid MR records, and the statistical caliber is noted in the output.

[0032] Suppose that base station b has a total of |G| within the coverage area of ​​statistical window t. b,t | Level 17 fine grids, of which the number of fine grids with valid MR location prediction records is |G b,t MR | Then the spatial coverage ratio of the base station is K b,t =|G b,t MR | / |Gb,t Grids without valid MR location prediction records are not included in this fine-grained allocation; their corresponding terminal equivalents are retained by the coarse grid.

[0033] Let G be the set of fine grids containing effective MR location prediction records within the coverage area of ​​base station b in statistical window t. b,t MR The number of deduplicated anonymized terminals or the number of valid MR records in the target fine mesh g is m. b,g,t The sum of the corresponding quantities in all effective fine grids of this base station is M. b,t The internal occupancy of the target fine mesh is as shown in equation (2):

[0034] (2)

[0035] The proportion within the fine grid is the sum of the number of deduplicated anonymous terminals or valid MR records in the target fine grid and the corresponding number in all valid fine grids of the same base station, M. b,t The ratio. The sum of the internal proportions of all effective fine grids in the same base station is 1.

[0036] The terminal equivalent fusion calculation module uses the base station-level terminal equivalent statistically derived from MME data as the total baseline, and uses the spatial coverage ratio and the proportion within the fine grid as the spatial allocation weights. The terminal equivalent contribution of base station b to the target fine grid g in the statistical window t is shown in equation (3):

[0037] N b,g,t =N b,t ×K b,t ×k b,g,t (3)

[0038] Where, N b,g,t N represents the terminal equivalent contribution of base station b to fine grid g within statistical window t. b,t K represents the base station-level terminal equivalent of this base station. b,t k represents the spatial coverage ratio of the base station. b,g,t The internal proportion of the target fine grid. The terminal equivalent contribution of the fine grid is based on the total amount of base station-level MME terminal equivalent, and the portion entering the fine grid allocation is determined by the spatial coverage ratio, and then allocated according to the internal proportion of each fine grid. The calculation result can be rounded to decimal; when an integer output is required, it is padded to the nearest integer according to the decimal remainder of each grid in descending order.

[0039] Because of K b,t Possibly less than 1, the sum of the assigned terminal equivalents for fine meshes is N. b,t ×K b,t The undifferentiated remaining terminal equivalent is shown in equation (4):

[0040] N b,t res=N b,t (1-K b,t (4)

[0041] Where, N b,t res This represents the remaining terminal equivalent of base station b within the statistical window t, which is not subdivided into fine grids. The terminal equivalent not allocated to fine grids is not presented as a value at the fine grid level, but rather its grid level is determined as described later and included in the coarse grid retention of the corresponding level; it is neither allocated equally based on the number or area of ​​fine grids lacking MR location prediction data, nor extrapolated based on the measured terminal equivalent density of fine grids with MR location prediction data.

[0042] When allocating the expected value of the fractional part, each base station and each statistical window satisfies equation (5):

[0043] (5)

[0044] After the calculation is completed, check whether the sum of the terminal equivalent outputs at each level and the sum of the coarse grid retention values ​​at each level equal the base station-level terminal equivalent, using the base station and statistical window as units. If the error exceeds the allowable numerical error, mark the result as abnormal and re-examine the input data and calculation process.

[0045] For a fine grid g that is simultaneously located within the coverage areas of multiple base stations, first calculate the terminal equivalent contribution of each base station to that fine grid, and then sum these contributions. Let B... g For a set of base stations covering a fine grid g, the final thermal value H of that fine grid within the statistical window t is... g,t As shown in equation (6):

[0046] (6)

[0047] Each base station uses its own base station-level terminal equivalent as the total baseline before allocation, thus avoiding the duplication of all terminal equivalents of a single base station into every fine grid it covers. When anonymous terminals cannot be uniformly identified across cells, the regional aggregation result uses the base station contribution heat index.

[0048] When there are no valid MR location prediction records within the coverage area of ​​a base station, fine grid allocation is not performed, and all terminal equivalents of the base station are retained in the coarse grid of the corresponding coarsest grid level.

[0049] The terminal equivalent fusion calculation module adaptively determines the output grid level for each region based on the sample support. The grid level sequence, from finest to coarsest, includes the S2 fine grid level, one or more intermediate grid levels, and the coarsest grid level; for example, when the fine grid level is Level 17 and the coarsest grid level is Level 14, the intermediate grid levels are Level 16 and Level 15.

[0050] The adaptive determination of the output grid level is performed as follows: A preset sample size threshold θ is set for each grid level involved in the determination. Starting from the finest grid level, the determination is performed level by level: if the number of valid MR records or the number of deduplicated anonymized terminals within the aggregation range of the target grid is not less than the sample size threshold of that level, the grid is output at that level; grids that do not meet the sample size threshold of that level are not output separately, their sample size is rolled up to the parent grid of the next higher level, and merged with other non-output grids under the same parent grid for statistics; if the merged sample size is not less than the sample size threshold of the next higher level, the parent grid outputs at the next higher level; the roll-up is performed level by level until the coarsest level in the grid level sequence is reached. It is important to clarify that the number of valid MR records or deduplicated anonymized terminals within the aggregation range of the target grid refers to the sum of valid MR records or deduplicated anonymized terminals in finer grids that are located within the coverage area of ​​the target grid and have not been output separately at a finer grid level. Fine grids that have already been output at a finer grid level are no longer included in the sample size statistics of their parent grid. Their location is determined by the output of the finer grid itself. If all fine grids within the coverage area of ​​a grid have already been output at a finer grid level, they will not be output separately. Therefore, the geographical areas covered by the grids output at each level are not nested or overlapped. The terminal equivalent of any fine grid will only appear in one output grid in the output results, and there will be no situation where the same part of the terminal equivalent is output at both the finer grid level and the coarse grid level and thus counted repeatedly.

[0051] Grids that still do not meet the sample size threshold after being judged at each level are handled by the coarsest grid level. Thus, the output grid level for each region is the finest grid level that the sample size of that region can support: regions with sufficient samples are presented with fine grids, while regions with insufficient samples automatically revert to intermediate grid levels instead of directly reverting to the coarsest grid level; different regions can have different output grid levels in the same output.

[0052] The sample size threshold is determined by taking the same value for the number of samples per unit side length at each grid level, i.e., θ l =ρ e ×e l , where e l Let ρ be the typical side length of the l-th level unit. eThis represents the number of samples per unit side length. Since the side length ratio and area ratio between adjacent layers are 2 and 4 respectively, the sample size threshold increases by a factor of 2 as the grid becomes coarser, i.e., θ l =θ 17 ×2 (17-l) Take θ 17 When θ = 3, 16 =6、θ 15 =12、θ 14 =24. It should be noted that the sample size threshold increases according to the side length ratio, not the area ratio: if the sample density of each level is required to be the same, the threshold should increase by a factor of 4 according to the area ratio. In this case, if each of the four sub-grids does not meet the threshold, their combined sample size will inevitably be less than the threshold of the parent grid, and the step-by-step roll-up will never be valid. Increasing according to the side length ratio relaxes the sample density of the coarse level to half that of the fine level, corresponding to the coarse level making spatial assertions only on the combined level of the four sub-grids, and not on individual sub-grids. The sample size threshold is only used to determine whether the heat value of the grid has sufficient sample support and does not change the total amount of base station-level terminal equivalents.

[0053] Let A be the mesh output at level l, and let U be the set of fine meshes aggregated into mesh A that were not output separately at finer levels. b,t (A), then the terminal equivalent carried by grid A at the l-th level is as shown in equation (7):

[0054] (7)

[0055] Where, N b,g,t The terminal equivalent is calculated separately for each fine grid g within the set according to equation (3). As can be seen from equation (7), the progressive roll-up only changes the bearing grid and output granularity of the terminal equivalent, and does not change the value obtained by each fine grid according to equation (3), nor does it re-divide the terminal equivalent according to the number of grids or the grid area; the sum of the terminal equivalents output at each level is still equal to the terminal equivalent N of the subdivision. b,t ×K b,t This is equal to the sum of the terminal equivalents of all fine grids with MR location prediction data. Since each fine grid with MR location prediction data is aggregated into only one output grid, there is no overlap in the terminal equivalents of the outputs at the above levels, and there is no need to perform deduplication processing on the outputs of different grid levels.

[0056] The remaining terminal equivalent is not allocated to fine grids lacking MR location prediction data. To ensure it is presented in the heatmap with granularity matching the data support, the carrying grid level for the remaining terminal equivalent is determined as follows: For fine grids lacking MR location prediction data, the first ancestor grid output at this level is searched along the grid level sequence from fine to coarse, and the remaining terminal equivalent corresponding to this fine grid is included in the coarse grid retention of the level where this ancestor grid is located; if no ancestor grid output at this level is found, it is included in the coarse grid retention of the coarsest grid level. Let V be the set of fine grids lacking MR location prediction data included in the l-th level. b,t (l) Its quantity is |V b,t (l) |, then the amount of coarse mesh retained at this level is shown in equation (8):

[0057] (8)

[0058] Where l is taken from each of the at least two grid levels. The sum of the coarse grid retention amounts of each level is equal to the remaining terminal equivalent N of equation (4). b,t res Therefore, the total quantity relationship in this embodiment remains as follows: the sum of the terminal equivalent output of each level and the sum of the coarse grid retention of each level are equal to the base station-level terminal equivalent of that base station. That is, the sum of the total fine grid contribution and the total coarse grid retention is still equal to N. b,t And perform the total quantity check as described above. Since the area of ​​each fine grid in the same region is equal, Equation (8) dividing the remaining terminal equivalent by the number of fine grids is equivalent to dividing it by its geometric coverage; this division only indicates the attribution of the remaining terminal equivalent among the grid levels from fine to coarse, and does not indicate that any fine grid lacking MR location prediction basis has this value alone. Fine grids lacking MR location prediction basis always present themselves with the granularity of their ancestor grids. It should be further explained that Equation (8) determines the amount of coarse grids retained at each level proportionally. Its function is to determine the bearing level of the remaining terminal equivalent under the constraint of total quantity conservation, that is, to answer which coarse grid level the terminal equivalent falls into, and does not constitute an estimate of the terminal equivalent of any fine grid lacking MR location prediction basis. In the absence of any location evidence for this part of the terminal equivalent, any other attribution rule other than attribution based on the geometric coverage of the fine grid to which it belongs (or by the number of fine grids when the areas of each fine grid are equal) would introduce additional distribution assumptions, so this implementation method does not adopt it; accordingly, the terminal equivalent value of any fine grid that lacks MR location prediction basis should not be inferred from the number of grids or the area of ​​the grid.

[0059] It should be noted that this embodiment does not extrapolate the terminal equivalent of fine grids lacking MR location prediction data based on the measured terminal equivalent density of fine grids with MR location prediction data. The reason is that the number of effective MR records increases with the number of terminals within a grid, and there is a positive correlation between obtaining MR location prediction data and high pedestrian traffic within the grid. Therefore, extrapolating the measured density of grids with data to those without data would systematically overestimate the remaining terminal equivalent, and the direction and magnitude of this overestimation cannot be identified by the method itself. Taking the aforementioned effect verification example, the total actual terminal equivalent of 36 fine grids with MR location prediction data is 5400, with a grid average of 150; the total actual terminal equivalent of 43 fine grids lacking MR location prediction data is only 600, with a grid average of 14.0. If extrapolated based on local measured density, the area without data would be overestimated by approximately 10.8 times. Therefore, this embodiment only divides the remaining terminal equivalent by load-bearing level, without extrapolating the density.

[0060] Compared to outputting all valid fine grids as fine grids, this implementation method avoids presenting fine grids supported by only one or two valid records at a medium granularity, instead of fine grids, as the sample size allows. This prevents isolated fine grid hotspots formed by individual sampling records from appearing in sparse areas of the heatmap. At the same time, the remaining terminal equivalents are distributed across multiple grid levels from fine to coarse according to the sample support of each region, instead of being uniformly placed on the coarsest grid level, thereby improving the matching degree between the spatial distribution presented by the heatmap and the data support.

[0061] When the base station coverage area crosses the boundary of the target area, the intersection of the base station coverage area and the polygonal fence of the target area is calculated first, and the S2 fine mesh within the intersection area is regenerated to avoid including the mesh outside the target area in the calculation.

[0062] Specifically, the method of the present invention includes the following steps.

[0063] Step S101: Receive the polygon fence of the target area, the statistical window length, the S2 fine mesh level, at least two S2 coarse mesh levels above the S2 fine mesh level, and base station engineering parameters, and check the coordinate range and validity of the polygon fence; the S2 fine mesh level and the at least two S2 coarse mesh levels constitute a mesh level sequence arranged from fine to coarse. In two adjacent mesh levels, one mesh of the coarser level contains four meshes of the finer level, and the typical side length of the coarser level unit is twice the typical side length of the finer level unit; access the MME data associated with the target area, clean the event time, serving cell, anonymous terminal identifier, and base station location, delete duplicate records and process ping-pong handover, and then perform deduplication statistics on the anonymous terminal identifier according to the statistical window and base station to obtain the base station-level terminal equivalent N of base station b in the statistical window t.b,t ;

[0064] Step S102: Access MDT data within the training time range, filter samples with valid location labels and complete wireless measurement fields shared with MR data, process low-frequency neighboring cells, abnormal measurement values, and duplicate records to form training samples; convert the location labels of the training samples into metric projected coordinates, use the wireless measurement features of the training samples as input and the location labels as output to train the GBDT eastward coordinate regressor and northward coordinate regressor respectively; access MR data within the current statistical window, generate input features according to the field order and missing value handling rules of the training phase, and use the GBDT location model to predict the location of valid records to obtain MR location prediction results;

[0065] Step S103: Map the base station location to the coarsest coarse grid corresponding to the S2 coarse grid level, map the MR location prediction result to the fine grid corresponding to the S2 fine grid level, and generate a set of fine grids G for the coverage area of ​​base station b within the statistical window t based on the base station coverage radius or coverage polygon. b,t and the fine-grid subset G containing effective MR location prediction results b,t MR According to the fine mesh subset G b,t MR The number of fine grids in the set G and the set of fine grids b,t The ratio of the number of fine grids in the space determines the spatial coverage ratio K. b,t The internal proportion k of the target fine grid is determined by the ratio of the number of deduplicated anonymized terminals or the number of valid MR records in the target fine grid to the sum of the corresponding numbers in all valid fine grids of the same base station. b,g,t ; with the base station-level terminal equivalent N b,t Based on the total amount, according to the aforementioned spatial coverage ratio K b,t and the internal proportion k b,g,t Calculate the terminal equivalent contribution N of base station b to the target fine grid g within the statistical window t. b,g,t N b,g,t =N b,t ×K b,t ×k b,g,t ;

[0066] Step S104: Determine the grid levels in the grid hierarchy sequence from finest to coarsest, except for the coarsest level: The number of valid MR records or the number of deduplicated anonymized terminals within the aggregation range of the target grid is not less than the sample size threshold θ for that level. lWhen the sample size threshold is not met, the grid is output at this level. If the sample size threshold is not met at this level, the grid is not output separately, but the sample size of its aggregated fine grids is rolled up to the next higher-level parent grid. This sample size is then combined with other non-output grids under the same parent grid and statistically analyzed. The parent grid then determines the sample size at the next higher level according to the same rules, rolling up level by level until the coarsest level in the grid hierarchy sequence. Grids that still do not meet the sample size threshold are carried by the coarsest level. The sample size threshold satisfies θ. l =ρ e ×e l , where e l Let ρ be the typical side length of the l-th level unit. e The number of samples per unit side length is set and taken to be the same at each grid level, such that the sample size threshold increases by a factor of 2 as the grid becomes coarser; the set of fine grids aggregated by grid A at the l-th level that are not output at finer levels is denoted as U. b,t (A), then the terminal equivalent carried by grid A at the l-th level is the sum of the terminal equivalents of each fine grid in the set calculated according to step S103, i.e., N. b,A,t (l) =ΣN b,g,t , where g is taken from U b,t (A); The step-by-step roll-up only changes the carrying grid and output granularity of the terminal equivalent that has been allocated to the fine grid according to step S103, and does not re-divide the terminal equivalent according to the number of grids or the grid area; it should be clarified that the number of effective MR records or the number of deduplicated and anonymized terminals within the aggregation range of the target grid refers to the sum of the number of effective MR records or the number of deduplicated and anonymized terminals of the fine grids located within the coverage range of the target grid and not output separately at the finer grid level; the fine grids that have been output at the finer grid level are no longer included in the sample size statistics of their parent grid, and their location is based on the output of the fine grid itself. If all the fine grids within the coverage range of a grid have been output at the finer grid level, they will not be output separately. Therefore, the geographical ranges covered by the grids output at each level are not nested and do not overlap with each other. The terminal equivalent of any fine grid will only appear in one output grid in the output result, and there will be no situation where the same part of the terminal equivalent is output at both the fine grid level and the coarse grid level and is counted repeatedly.

[0067] Step S105, according to N b,t res =N b,t (1-K b,t Determine the remaining terminal equivalent N of base station b within the statistical window t, before it is subdivided to a finer grid. b,t resFor fine meshes lacking MR location prediction data, the first ancestor mesh output at this level is searched from finest to coarser along the mesh hierarchy sequence. The remaining terminal equivalent corresponding to this fine mesh is included in the coarse mesh retention amount of the level where the ancestor mesh is located. If no ancestor mesh is found at this level, it is included in the coarse mesh retention amount of the coarsest mesh level. The set of fine meshes lacking MR location prediction data included at the l-th level is denoted as V. b,t (l) Its quantity is |V b,t (l) |, then the coarse mesh retention of the l-th level is N b,t res,(l) =N b,t res ×|V b,t (l) | / (|G b,t |-|G b,t MR |); The fine grids lacking MR location prediction data do not obtain terminal equivalent values ​​independently, and their terminal equivalent is not inferred from the amount of coarse grid retention based on the number or area of ​​the fine grids lacking MR location prediction data, nor is it extrapolated and allocated according to the measured terminal equivalent density of the fine grids with MR location prediction data.

[0068] Step S106: Check whether the sum of the terminal equivalent outputs of each level and the sum of the coarse grid retention of each level are equal to the base station-level terminal equivalent N of the base station. b,t If the error exceeds the allowable value, the result is marked as abnormal and the input data and calculation process are re-checked. After the check is passed, heat map data is generated. For fine grids that are simultaneously located in the coverage areas of multiple base stations, the terminal equivalent contribution of each base station to the fine grid is calculated and summed to obtain the heat value of the fine grid. Each output record of the heat map data includes the S2 grid number, the start and end time of the statistical window, the terminal equivalent, the output grid level of the record, the number of contributing base stations, the number of valid MR records, and the statistical caliber.

[0069] Beneficial effects

[0070] This invention uses the base station-level terminal equivalent count from MME data statistics as the total baseline. MR data is only used to determine the relative spatial distribution within the base station coverage area, thus avoiding directly using the number of MR sampling records as the total number of terminals.

[0071] For areas without effective MR location prediction records, this invention retains the corresponding terminal equivalent in a coarse grid, reducing the loss of terminal equivalent due to missing measurement records or unfounded fine-grained allocation.

[0072] By examining the sum of the fine grid contribution and the coarse grid retention, inconsistencies in the total base station-level data can be identified due to duplicate allocation, missing data, or computational anomalies.

[0073] In a case study with a spatial coverage ratio of 0.456 provided in the effectiveness verification example of the implementation method, the total actual terminal equivalent of the 43 fine grids lacking MR location prediction data is 600, accounting for only 10% of the base station's terminal equivalent. If the 3265.8 terminal equivalents of the unsubdivided base station are evenly distributed among these 43 fine grids, each fine grid is assigned 75.9 terminal equivalents, which is 5.4 times its true average of 14.0. The average absolute error per grid reaches 62.0, and the relative error of this area is +444%. The total error accounts for 44.4% of the base station's terminal equivalent. This invention retains this portion of the terminal equivalent in the coarse grid, thus avoiding the aforementioned unfounded estimates at the fine grid level.

[0074] Secondly, during the step-by-step roll-up process, only the measured values ​​obtained by formula (3) for fine grids that do not meet the sample size threshold of this level are aggregated to the parent grid, without re-segmenting the terminal equivalent according to the number of grids or the grid area. In the aforementioned numerical example, the roll-up amount aggregated according to the measured values ​​is 139.2, while the amount segmented according to the grid number ratio will reach 1113.9, the latter being 8.0 times that of the former, which is equivalent to generating the terminal equivalent out of thin air based on the average density of the entire area in areas without location basis. Thirdly, this method does not extrapolate the measured density of grids with location basis to grids without location basis: the number of effective MR records increases with the increase of the number of terminals in the grid, and there is a positive correlation between obtaining MR location basis and the high flow of people in the grid. Therefore, extrapolating the measured density of grids with location basis to grids without location basis will cause the terminal equivalent to be systematically overestimated. In the above example, it is overestimated by about 10.8 times, and the direction of this overestimate is certain and the magnitude cannot be identified by this method itself. This method only divides the remaining terminal equivalent into the grid levels it carries without estimating its distribution, thus avoiding fine-grained false accuracy in areas lacking location information.

[0075] In the same calculation example, when the top 20 fine grids with the highest output values ​​were selected as hotspots, only 4 were considered real hotspots in the uniform distribution result, while the remaining 16 were pseudo-hotspots with actual pedestrian flow of only 16 or 5, resulting in a hotspot hit rate of 20%. This invention only outputs fine grid values ​​in grids with location prediction basis, and these values ​​are constant multiples of the actual pedestrian flow, with the sorting consistent with the actual pedestrian flow sorting, resulting in a hotspot hit rate of 100%. The settings and calculation process of the above calculation example are shown in the effect verification example in the implementation details; the aforementioned multiple relationship and sorting consistency hold true under the conditions set in this verification example.

[0076] Compared to outputting all valid fine grids at the fine grid level, this invention determines the output grid level of each region progressively from fine to coarse based on a sample size threshold. This prevents fine grids supported by only one or two valid measurement records from being presented as fine grids alone, but rather as coarser grids supported by their sample size. Consequently, isolated fine grid hotspots formed by individual sampling records no longer appear in the heatmap, and the granularity of each region varies with the sample support level of that region. The heatmap data generated in a single run can simultaneously include regions presented at different grid levels. Since the roll-up process only sums the values ​​of each fine grid obtained by formula (3) according to formula (7), without re-dividing according to the number of grids or the grid area, the change in the output granularity does not change the calculated value of any fine grid, nor does it change the total amount of terminal equivalents entering the subdivision; since the sample size threshold is determined by the number of samples per unit side length and increases by 2 times with the side length, when each of the four sub-grids does not meet the threshold of its own level, the total sample size may still meet the threshold of the parent grid of the previous level, and the roll-up at each level can actually take effect without degenerating into all roll-up to the coarsest level or all remaining in the finest level; conversely, if the sample size threshold increases by 4 times according to the area ratio, when each of the four sub-grids does not meet the threshold of its own level, the total sample size will necessarily be less than the threshold of the parent grid of the previous level, and the roll-up at each level will not be valid under any circumstances, and the intermediate grid level will be rendered useless. In the aforementioned numerical example, the 11 fine grids that do not meet the sample size threshold of the S2 fine grid level are output at the two intermediate grid levels of Level 16 and Level 15 after being rolled up level by level. None of the grids directly regress to the coarsest Level 14 level. It can be seen that determining the sample size threshold by taking the same value for the number of samples per unit side length at each grid level can ensure that the aforementioned intermediate grid levels are actually used in the actual data, without causing the grid level sequence to degenerate into only making a choice between the finest and coarsest grid levels.

[0077] Compared to directly discarding terminal equivalents not included in the spatial coverage ratio, this invention retains these terminal equivalents in the corresponding level of the coarse grid and includes them in the total count. Directly discarding them causes the regional total to fluctuate with the number of valid MR records: when valid records decrease, the terminal equivalents in the same area at the same time period decrease accordingly. This decrease is unrelated to actual pedestrian traffic within the statistical area, but only to the acquisition of measurement records; furthermore, this deficiency is reflected in the output as if there were indeed no people in the area, making it impossible for downstream applications to distinguish between the two. This invention retains this portion in the form of a coarse grid retention quantity and indicates its granularity in the output record using the output grid level and statistical caliber fields. This keeps the regional total stable as valid records change, while not hiding the uncertainty of this portion as a definite value on a fine grid.

[0078] Furthermore, for situations where data conditions are limited, this invention provides processing methods and indicates them in the output: when anonymous terminal identifiers can be used for user-level association, the internal proportion is determined by the number of deduplicated anonymous terminals; when user-level association cannot be performed, the internal proportion is determined by the number of valid MR records, and the statistical method is noted in the output. This ensures that the same allocation and hierarchical determination process can be implemented under both data conditions, and the difference in methods is identifiable in the output results. Network measurement report records whose predicted locations exceed the coverage area of ​​the corresponding base station are marked as abnormal and do not participate in the calculation of the spatial coverage ratio and the internal proportion. This ensures that the prediction failure of individual records in the location model does not artificially inflate the area share of the location data obtained within the base station coverage area, nor does it pollute the relative distribution between effective fine grids. The above two processing methods also do not change the total baseline of the base station-level terminal equivalent.

[0079] The above-mentioned technical means work together within the same grid level sequence: the spatial coverage ratio and the internal proportion only determine the allocation weight of the part with MR location prediction basis, the step-by-step roll-up only changes the carrying grid of that part without changing its value, the terminal equivalent without MR location prediction basis only determines its carrying level and is presented as a coarse grid retention amount, and the total amount check ensures that the sum of the terminal equivalent output of each level and the sum of the coarse grid retention amount of each level are still equal to the base station-level terminal equivalent of that base station. Thus, the heat map data generated in the same time contains three types of numerical values ​​that can be explained by three sources at the same time - the part with location basis and the intermediate level value obtained by aggregating it according to formula (7), the part without location basis and presented as a coarse grid retention amount, and the base station-level total amount obtained by summing the two according to the level - the three are distinguished by the grid level and statistical caliber field of the output record, and are not confused with each other. The above results are not a simple summation of the individual effects of each set of technical means: without the step-by-step roll-up, areas with insufficient sample size are still presented with fine grid granularity, and the granularity does not match the supporting range of its location evidence; without the carrying level division, this part of the terminal equivalent can only be discarded or apportioned, the former causing the total amount of the region to fluctuate with the number of valid measurement records, and the latter producing the aforementioned false fine-grained accuracy; without the total amount check, the errors caused by the above granularity adjustment cannot be detected in the output results.

[0080] It should be noted that the spatial coverage ratio K of the present invention b,tThe ratio of the number of fine grids with MR location prediction data to the total number of fine grids is used to determine the location data. Since the area of ​​each fine grid in the same region is equal, this ratio is equivalent to the ratio of the area of ​​the geometric coverage range, which is an estimate of the area share of the base station coverage area that has obtained location data. However, the "no extrapolation" mentioned in this invention means that the terminal equivalent density of fine grids lacking MR location prediction data is not estimated based on the measured terminal equivalent density of fine grids with MR location prediction data. The difference between the two is that the former uses the number of grids as the counting unit and only answers how much area has obtained location data. Its estimation error comes from whether the spatial coverage of MR records is uniform, and this error is explicitly given in the output results by the spatial coverage ratio and the amount of coarse grid retention. The latter uses the flow of people as the counting unit and needs to assume that the area with location data and the area without location data have the same flow of people. This assumption contradicts the fact that the number of effective MR records increases with the number of terminals in the grid. Its deviation direction is definite and cannot be identified by the method itself. Therefore, the K approximation based on area is adopted. b,t Dividing the market into subdivided segments and refusing to extrapolate areas lacking location data based on measured density are not contradictory: the former is to make divisions based on the observable dimension of the coverage of location data, while the latter is to refuse to make inferences based on the unobservable dimension of pedestrian density.

[0081] It should also be noted that this invention does not generate fine-grid level estimates in areas lacking MR location prediction data, thus avoiding estimation errors at that grid level that are comparable to the true values. Accordingly, the technical effect of this invention is not to improve the estimation accuracy at the fine-grid level, but to ensure that each part of the output has an illustrative source and its uncertainty is identifiable: the part with location data provides a verifiable terminal equivalent share, while the part lacking location data is presented as a coarse-grid retention amount, with its granularity indicated by the output grid level and statistical caliber; the sum of these two equals the base station-level terminal equivalent and is therefore verifiable. Thus, downstream applications can distinguish between areas lacking location data due to missing measurement records and areas that are genuinely devoid of people, without generating fine-grained values ​​based on assumed density. These properties are determined by the structure of the output data itself, do not depend on prior assumptions about actual pedestrian flow, and do not change due to different values ​​of the actual population in specific examples. Attached Figure Description

[0082] Figure 1 This is a schematic diagram of the regional pedestrian flow heat map of the present invention. The figure shows the target area, the distribution of MR location prediction results in terms of the density of points in the target area, the terminal equivalent output by Level 17 grid, Level 16 grid and Level 15 grid according to the sample support, and the area lacking MR location prediction basis presented by the Level 14 coarse grid retention amount.

[0083] Figure 2 This is a schematic diagram of the MDT location model training and MR location prediction process of the present invention, including the selection of training samples for MDT data, the metric projection coordinate transformation of location labels and the training of eastward and northward GBDT coordinate regressors in the training phase, and the construction of input features for MR data, location prediction and abnormal record removal in the prediction phase.

[0084] Figure 3 This is a schematic diagram of different area selection methods of the present invention, wherein (a) is a circular coverage area centered on the base station and the set of Level 17 grids that intersect with it, and (b) is a network planning coverage polygon and the set of grids that intersect with it and the center point of the grid.

[0085] Figure 4 This is a schematic diagram of the grid mapping calculation of the present invention. The diagram shows the division of Level 17 grids, fine grids with and without MR location prediction basis within the base station coverage area, and the calculation relationship of spatial coverage ratio, internal proportion of fine grids, equivalent contribution of fine grid terminals, and retention of coarse grids. Detailed Implementation

[0086] This implementation method is executed in a carrier-controlled data environment. The system follows... Figure 1 Display a heat map of pedestrian flow in the target area, according to Figure 2 The process shown trains the MDT location model, and follows... Figure 3 and Figure 4 The relationships shown complete the mapping calculation between the base station coverage area, the S2 grid, and the MR location prediction results.

[0087] Select the target area defined by the polygon fence and read the base station configuration within the area and intersecting with the boundary. This embodiment uses a 5-minute statistical window. A unified field mapping is performed on mobility management signaling for different network standards. Records with invalid anonymous terminal identifiers, empty serving cells, or unmatched base station locations are deleted. Then, the number of deduplicated anonymous terminals is counted according to the statistical window and base station count.

[0088] The training data uses MDT data from the month preceding the prediction date for the target area. Samples with valid location labels, serving cell RSRP, RSRQ, timing lead, and neighboring cell RSRP and RSRQ are retained. Neighboring cells with a occurrence rate of less than 1% are removed, and no more than 30 neighboring cells are selected based on average field strength from high to low, forming training features with a fixed field order. The model is updated every 7 days, using data from the month preceding the prediction date.

[0089] The system reads the MR data within the current statistical window and generates input features according to the field order of the training phase. If a few neighbor cell fields are missing, the missing markers determined during the training phase are used; if a serving cell or a field necessary for the model is missing, the record is not included in location prediction. After the model outputs the predicted location, it checks whether the location is within the target area or the coverage area of ​​the corresponding base station; records whose predicted locations exceed the coverage area of ​​the corresponding base station are marked as abnormal, do not participate in the spatial coverage ratio calculation, and are not included in the number of valid MR records in the corresponding fine grid.

[0090] In this embodiment, the base station location is mapped to a Level 14 coarse grid, and the MR predicted location is mapped to a Level 17 fine grid. A coverage area is constructed with the base station location as the center and a coverage radius of 1000 meters, and its intersection with the target area fence is calculated. Subsequently, the S2 area coverage algorithm is used to obtain the set of Level 17 grids within the intersection range. When the planned network coverage area can be obtained, it is used preferentially.

[0091] Taking a statistical window of a base station as an example, the MME deduplication terminal equivalent of this window is 8000; the base station coverage area contains 79 Level 17 grids, of which 55 grids have valid MR location prediction records. Therefore, the spatial coverage ratio is approximately calculated as 55 / 79 based on equal area. The total number of valid MR records in the 55 valid grids is 1000, and the target grid contains 50 valid records, so the internal ratio of the target grid is 50 / 1000.

[0092] The terminal equivalent contribution of the target grid is calculated according to equation (9):

[0093] (9)

[0094] Therefore, the base station's terminal equivalent contribution to the target grid is approximately 278.48. The sum of all effective fine-grid allocations and coarse-grid reservations equals 8000 terminal equivalents for this base station.

[0095] If the target grid is also located within the coverage area of ​​another base station, the other base station independently calculates its contribution based on its own MME terminal equivalent and MR grid distribution, and finally sums the contributions of the two base stations. When it is impossible to uniformly identify anonymous terminals across cells, the output result is labeled as the base station contribution heat map index.

[0096] Each output record includes a grid number (S2CellId), the start and end times of the statistical window, terminal equivalent, number of contributing base stations, number of valid MR records, output grid level, and statistical caliber. If no valid MR records are found, only the coarse grid retention amount is output; if the calculation result does not meet the base station-level total quantity check, the result is marked as abnormal. Since the geographical areas covered by the grids output at each level do not overlap, the regional summary for any selected area can be directly obtained by accumulating the output records within that area, without needing to remove duplicates between different grid levels; the output grid level field allows each source quantity in the accumulated result to be traceable to the granularity supported by its location evidence.

[0097] Taking the aforementioned base station as an example, its coverage area includes 79 Level 17 grids, of which 55 grids have valid MR location prediction records, totaling 1000 valid records. Let θ... 17 =3、θ 16 =6、θ 15 =12、θ 14 =24. Of the 55 valid grids, 44 grids have at least 3 records, output at Level 17, totaling 975 valid records; the remaining 11 grids have 1 or 2 records, totaling 25 valid records. After roll-up, these are assigned to 5 Level 16 parent grids, with merged records of 7, 6, 5, 4, and 3 respectively. The remaining Level 17 sub-grids covered by these 5 Level 16 parent grids are all fine grids lacking MR location prediction data. The first two Level 16 parent grids have at least 6 records, output at Level 16, aggregating 3 and 2 Level 17 grids respectively; the remaining three Level 16 parent grids have less than 6 records, continuing to roll up to the same Level 15 grid, merging 12 records, not less than θ. 15 =12, in the Level15 output, the number of Level17 grids it aggregates is 6. The base station level terminal equivalent is 8000, the spatial coverage ratio is 55 / 79, and the terminal equivalent entering the subdivision is 5569.6. According to the actual aggregation according to formula (7), the terminal equivalents output by Level16 are 39.0 and 33.4 respectively, and the terminal equivalents output by Level15 are 66.8. The total of the three is 139.2, which is consistent with the sum of the terminal equivalents obtained by these 11 fine grids according to formula (3); while if it is divided according to the proportion of the number of grids (i.e. each fine grid is divided into N) b,t / |G b,t| value), this part will be assigned 8000×11 / 79=1113.9, which is 8.0 times the actual aggregation value. The base station lacks 24 fine grids for MR location prediction, and the remaining terminal equivalent is 2430.4; according to the division of the bearer level according to the formula (8), let the nearest output ancestor of 3 of them be the Level16 grid, the nearest output ancestor of 6 be the Level15 grid, and the remaining 15 have not found the ancestor grid output in this level. Then the coarse grid retention of Level16, Level15 and Level14 are 303.8, 607.6 and 1519.0 respectively, and the sum of the three is 2430.4, which is consistent with the formula (4).

[0098] The following is a verification example to compare the error of the present invention with that of two control methods under the same calculation. The true value in this verification example is the pedestrian flow distribution reconstructed from full high-precision positioning data within the same area and statistical window. It is only used to verify the technical effect of the present invention and does not constitute a limitation on the implementation conditions of the present invention. Those skilled in the art will understand that it is not necessary to obtain this true value in actual implementation. The values ​​in this verification example are independent of the numerical examples mentioned above.

[0099] Suppose that the base station-level terminal equivalent N of a certain base station b in the statistical window t is N. b,t The value is 6000, and its coverage area, after intersection with the target area fence, contains 79 Level 17 fine grids. The actual terminal equivalent distribution of these 79 fine grids is shown in Table 1, divided into five groups according to the pedestrian flow from high to low.

[0100] Specifically, in the aforementioned numerical example, the base station-level terminal equivalent was 8000 and the number of fine grids with effective MR location prediction results was 55. In this verification example, the numbers are 6000 and 36, respectively. The spatial coverage ratios of the two are also different. Therefore, the number of subdivisions and the number of remaining subdivisions in the two places do not correspond or overlap and should not be referenced to each other.

[0101] Table 1. Distribution of real terminal equivalent in fine mesh for the validation example.

[0102] Grouping Number of grids True values ​​for each group (person / grid) Truth total Percentage of total base stations G1 4 460 1840 30.7% G2 12 130 1560 26.0% G3 20 100 2000 33.3% G4 35 16 560 9.3% G5 8 5 40 0.7% total 79 — 6000 100%

[0103] The number of effective MR records increases with the number of terminals within the grid; therefore, grids with higher actual pedestrian traffic are more likely to achieve an effective sample size. To facilitate comparison under identical conditions, this validation example assumes that the number of effective MR records obtained from each fine grid is proportional to its actual terminal equivalent. This setting is only used to compare the control methods with the present invention under the same distribution assumptions and does not constitute a limitation on the implementation conditions of the present invention. In this example, 36 fine grids with an actual terminal equivalent of not less than 100 (groups G1 to G3) obtained effective MR location prediction results, while the remaining 43 fine grids (groups G4 and G5) did not obtain effective MR location prediction results. Therefore, the spatial coverage ratio K...b,t The ratio is 36 / 79, or 0.456; the terminal equivalent that has been subdivided is 2734.2; the remaining terminal equivalent that has not been subdivided is 3265.8; the total actual terminal equivalent of the 43 fine grids that lack location prediction data is 600.

[0104] Compared with Method 1, uniform allocation: the fine grid allocation amount is calculated according to Equation (3), and the remaining terminal equivalent is evenly allocated to the 43 fine grids that lack MR location prediction basis. Compared with Method 2, all terminal equivalents are allocated according to the normalization of MR record number: no remaining amount is set, and all 6000 terminal equivalents are allocated to 36 effective fine grids according to the relative distribution of effective MR record number, and the remaining 43 fine grids are recorded as zero; this method corresponds to the practice of directly using the relative distribution of sampling measurement records as the full terminal distribution. In this invention: the fine grid allocation amount is calculated according to Equation (3), where fine grids whose sample size does not meet the sample size threshold of this level are not output separately, but are rolled up to the coarser grid level that their sample size can support according to Equation (7); the remaining terminal equivalents are not allocated, but are included in the coarse grid retention amount of the corresponding level according to Equation (8), and are marked in the output record with the output grid level and statistical caliber fields.

[0105] Table 2 presents the results of the three methods on 43 fine grids lacking MR location prediction data. It should be noted that the uniform apportionment assigns a value of N to each unsupported grid. b,t / |G b,t |, that is, the terminal equivalent of the entire area on an average basis of area is 75.9, which is unrelated to the spatial coverage ratio; this value is only determined by the terminal equivalent at the base station level and the total number of fine grids, and is unrelated to the actual flow of people in the grid itself. Therefore, its error increases as the actual flow of people in the grid deviates from the average value of the entire area.

[0106] Table 2 Comparison of results for regions without MR location prediction basis (43 fine grids, total 600 true values)

[0107] Way Each fine grid is assigned a terminal equivalent Average absolute error per grid Regional deviation from the true value Is the error identifiable? Compare with Method 1 (Uniform Distribution) 75.9 62.0 +2665.8(+444%) No, it looks the same as the data provided. Compare with Method 2 (Normalized Total Distribution) 0 14.0 -600(-100%) No, it cannot be distinguished from a situation where there are indeed no people in the area. This invention Do not output fine grid values — Fine mesh levels do not produce estimates. Yes, the retention rate is indicated by the coarse grid level and statistical caliber.

[0108] In Table 2, the root mean square error per grid of the control method 1 is 62.1, and that of the control method 2 is 14.6. Since the present invention does not output values ​​at the fine grid level, this indicator is not applicable. In addition, on 36 effective fine grids, the control method 1 and the present invention give the same results according to equation (3). Therefore, the differences in Table 2 all come from the processing method of the remaining terminal equivalent.

[0109] As shown in Table 2, the average absolute error per grid of Comparison Method 2 is smaller than that of Comparison Method 1, but this relies on the premise that the relative distribution of the number of valid MR records is equivalent to the relative distribution of terminal equivalents. This premise does not hold when the MR sampling rate varies with terminal model, network type, and service activity, and the direction and magnitude of the deviation are not identifiable in the output results: Comparison Method 2 records 43 unsubstantiated grids as zero, which is completely consistent with the situation where there are indeed no people in these grids, and downstream applications cannot distinguish between the two. Comparison Method 1, on the contrary, injects a terminal equivalent equal to the average area of ​​the entire region into each unsubstantiated grid, resulting in a significant overestimation in areas where the actual population flow is far lower than the average area. This invention does not provide point estimates in areas lacking location evidence, but instead provides verifiable totals in the form of coarse grid retention, making this uncertainty explicitly identifiable in the output results.

[0110] Table 3 shows the results of changing the criteria for determining the effective sample size, thereby altering the spatial coverage ratio, under the true value distribution in Table 1. It can be seen that the uniform apportionment assigns a constant value of 75.9 to each unfounded grid, independent of the spatial coverage ratio; however, the sum of the absolute errors per grid increases as the spatial coverage ratio decreases, reaching 2666 when the spatial coverage ratio is 0.456, accounting for 44.4% of the equivalent of the base station terminals.

[0111] Table 3 Errors in unsubstantiated areas under different spatial coverage ratios (True value distribution is the same as in Table 1)

[0112] Effective number of fine grids <![CDATA[Spatial coverage ratio K b,t > Unfounded grid number Each undefined grid is assigned a value. Unfounded region truth summation Sum of absolute errors per grid (as a percentage of total base station errors) 4 0.051 75 75.9 4160 3795(63.3%) 36 0.456 43 75.9 600 2666(44.4%) 71 0.899 8 75.9 40 568(9.5%)

[0113] Table 4 shows the hit rate when the top 20 fine grids, ranked from highest to lowest output value, are selected as hotspots. In Comparative Method 1, the estimated values ​​of the 36 effective fine grids are 0.506 times their true values. Among them, the four grids with a true value of 460 have an estimated value of 232.9, higher than the unsupported grid's 75.9, and are ranked at the top. The estimated values ​​of the 32 grids with true values ​​of 130 and 100 are 65.8 and 50.6 respectively, both lower than 75.9, and are surpassed by the 43 unsupported grids, ranking them lower. Therefore, in Comparative Method 1, only 4 of the top 20 hotspots are true hotspots, and the remaining 16 are pseudo-hotspots with actual pedestrian traffic of only 16 or 5, resulting in a hit rate of 20%. In this invention, only the fine grid values ​​from the 36 effective fine grids are output, with each grid's estimated value being the same constant multiple of the true value. The ranking is completely consistent with the actual pedestrian traffic ranking, and all of the top 20 hotspots are true hotspots, resulting in a hit rate of 100%. As shown in Table 4, the hotspot hit rate only reflects the correctness of the sorting: Under the assumptions of this verification example, the sorting of the control method 2 is also consistent with the actual flow of people, and its hit rate is also 100%. However, this method allocates all 6,000 terminal equivalents to 36 effective fine grids, causing the values ​​of these grids to be systematically overestimated by 11.1%, and records 43 fine grids that lack MR location prediction basis as zero. This is indistinguishable from the situation where there are indeed no people in these grids in the output. The difference between this invention and this method is that the above-mentioned systematic overestimation and recording as zero do not appear in the output of this invention, and the areas lacking location evidence can be identified by the grid level and statistical caliber fields of the output record.

[0114] Table 4. Hotspot identification results (top 20 fine grids of output values)

[0115] Way The number of real hotspots in the top 20 Pseudo-hotspot numbers Hotspot hit rate Comparison Method 1: Uniform Distribution 4 16 20% Comparison Method 2: Normalized Total Allocation 20 0 100% This invention 20 0 100%

[0116] As demonstrated by the above verification examples, in areas lacking MR location prediction data, uniformly allocating fixed values ​​unrelated to actual pedestrian flow to each fine grid cell results in systematic overestimation in these areas and generates numerous false hotspots in hotspot identification. While the normalized allocation method based on sampled records has a smaller error under the assumptions of the examples, its bias is undetectable and can manifest missing data as missing personnel. This invention avoids generating fine grid values ​​in areas lacking location evidence, presenting the terminal equivalent as a coarse grid retention value. This ensures that the spatial granularity of the heatmap aligns with the supporting range of location evidence, while maintaining the verifiability of the total base station-level data.

[0117] It should also be noted that the fine-grid values ​​output by this invention represent the terminal equivalent share that can be confirmed with evidence supporting the grid location. The difference between this value and the complete pedestrian flow of that grid is included in the retention of the corresponding coarse-grid. Therefore, the fine-grid values ​​should not be interpreted as the complete pedestrian flow of that grid on their own, but should be interpreted in conjunction with the retention of the corresponding coarse-grid and the statistical caliber fields in the output record. This processing method ensures that each part of the output result has an illustrative source, rather than presenting data with fine-grid precision that does not actually possess.

[0118] Terminal identifiers in the input data are anonymized before entering the analysis module. Anonymous identifiers are only used for terminal deduplication and data association within the statistics window. The output results only include grid number, statistical time, terminal equivalent, and statistical scope, and do not include user numbers or terminal device identification codes.

[0119] This invention does not require all networks, terminals, and time periods to simultaneously obtain all fields of MME, MR, and MDT. When stable anonymity identifiers can be used to associate MR and MME data, deduplication within the grid is performed according to the anonymized terminals; when user-level association is not possible, the relative distribution is formed using the number of valid MR records, and the statistical caliber is noted in the output.

[0120] The fine-grid thermal values ​​output by this invention are estimates calculated based on the MME terminal equivalent and the relative distribution of MR. The S2 level represents the discrete granularity of the output grid, which is not equivalent to the prediction error of the location model, nor does it directly represent the number of natural persons within the fine grid. The output grid level for each region is determined by the sample support of that region; regions with insufficient sample support are output with a coarser grid level, rather than all being output with the finest grid.

[0121] The above method is executed by a computer device. The computer device includes a memory and a processor. The memory stores a computer program that can run on the processor. When the processor executes the computer program, it implements the steps of the above-described method for generating a heatmap of pedestrian flow based on mobile communication data. The computer program can also be stored in a computer-readable storage medium and read and executed by the processor. The computer device executes the above steps in batches according to statistical windows and outputs the heatmap data according to base stations and statistical windows.

Claims

1. A method for generating a heat map of pedestrian flow based on mobile communication data, characterized in that, The method is executed by a computer device and includes the following steps: Step S101: Receive the polygon fence of the target area, the statistical window length, the S2 fine grid level, at least two S2 coarse grid levels above it, and base station engineering parameters; the S2 fine grid level and the at least two S2 coarse grid levels form a grid level sequence arranged from fine to coarse. In two adjacent grid levels, one grid of the coarser level contains four grids of the finer level, and the typical side length of the coarser level unit is twice the typical side length of the finer level unit; access the mobility management signaling data associated with the target area, and perform deduplication statistics on anonymous terminal identifiers according to the statistical window and base station to obtain the base station-level terminal equivalent N of base station b in the statistical window t. b,t ; Step S102: Access the minimized drive test data within the training time range, filter samples with valid location labels and complete wireless measurement fields shared with the network measurement report data to form training samples, and train the location model using the wireless measurement features of the training samples as input and the location labels of the training samples as output; access the network measurement report data within the current statistical window, use the location model to predict the location of the valid records therein, and obtain the MR location prediction result; Step S103: Map the MR location prediction result to the fine grid corresponding to the fine grid level of S2, and generate the fine grid set G of base station b within the coverage area of ​​statistical window t. b,t and the fine-grid subset G containing effective MR location prediction results b,t MR And determine the spatial coverage ratio K according to the following formula. b,t The internal proportion k of the target fine mesh g b,g,t : K b,t =|G b,t MR | / |G b,t | k b,g,t =m b,g,t / M b,t Where |·| represents the number of fine grids in the set, m b,g,t M represents the number of deduplicated anonymous terminals or the number of valid MR records in the target fine mesh g. b,t For the fine mesh subset G b,t MR The sum of the corresponding quantities of each fine grid in the middle; with the base station-level terminal equivalent N b,t Using the total amount as a baseline, the terminal equivalent contribution N to the target fine grid g is calculated according to the following formula. b,g,t : N b,g,t =N b,t ×K b,t ×k b,g,t Step S104: Determine the grid levels in the grid hierarchy sequence from finest to coarsest, except for the coarsest level: The number of valid MR records or the number of deduplicated anonymized terminals within the aggregation range of the target grid is not less than the sample size threshold θ for that level. l When the condition is met, the grid outputs at this level; if not, the sample size of the aggregated fine grids is rolled up to the next higher-level parent grid, merged and statistically analyzed with other non-output grids under the same parent grid, and then judged by the parent grid at the next higher level according to the same rule. This process is repeated level by level until the coarsest level in the grid level sequence is reached. Grids that still do not meet the condition are carried by the coarsest level. This ensures that the output grid level of each region is the finest grid level that the sample size of that region can support, and regions with insufficient samples are relegated to intermediate grid levels. The sample size threshold satisfies θ. l =ρ e ×e l , where e l Let ρ be the typical side length of the l-th level unit. e The number of samples per unit side length is set to the same value at each grid level, and the sample size threshold increases by a factor of 2 as the grid size increases from fine to coarse. The set of fine grids aggregated by grid A at the l-th level that are not output at finer levels is denoted as U. b,t (A), the terminal equivalent carried by grid A at level l is determined by the following formula: N b,A,t (l) =Σ N b,g,t (g∈U) b,t (A)) The step-by-step roll-up only changes the carrying grid and output granularity of the terminal equivalent that has been allocated to the fine grid in step S103, and does not re-divide the terminal equivalent according to the number of grids or the grid area; the sample size threshold is only used to determine whether the grid has enough sample support, and does not change the total amount of the base station-level terminal equivalent. Step S105: Determine the remaining terminal equivalent N that has not been subdivided to a finer mesh according to the following formula. b,t res : N b,t res =N b,t (1-K b,t ) For fine meshes lacking MR location prediction data, the first output ancestor mesh is searched from finest to coarsest along the mesh hierarchy sequence, and its corresponding remaining terminal equivalent is included in the coarse mesh retention amount of the ancestor mesh's level. If no output ancestor mesh is found, it is included in the coarse mesh retention amount of the coarsest mesh level. The set of fine meshes lacking MR location prediction data included in the l-th level is denoted as V. b,t (l) Its quantity is |V b,t (l) Then, the amount of coarse mesh retained at level l is determined by the following formula: N b,t res,(l) =N b,t res ×|V b,t (l) | / (|G b,t |-|G b,t MR |) Fine grids lacking MR location prediction data do not obtain terminal equivalent values ​​independently, nor are their terminal equivalent values ​​inferred from the amount of coarse grid retention based on the number or area of ​​the fine grids, nor are they extrapolated and allocated based on the measured terminal equivalent density of fine grids with MR location prediction data. Step S106: Check whether the sum of the terminal equivalent outputs of each level and the sum of the coarse grid retention of each level are equal to the base station-level terminal equivalent N of the base station. b,t After the inspection is passed, heatmap data is generated. For fine grids that are simultaneously located in the coverage areas of multiple base stations, the terminal equivalent contribution of each base station to the fine grid is calculated and summed to obtain the heatmap value of the fine grid. Each base station uses its own base station-level terminal equivalent as the total baseline and does not repeatedly copy it to each fine grid in its coverage area. Each output record of the heatmap data includes grid number, statistical window start and end time, terminal equivalent, number of contributing base stations, number of valid MR records, output grid level, and statistical caliber.

2. The method according to claim 1, characterized in that, In step S103, when the anonymous terminal identifier can be used to associate network measurement report data and mobility management signaling data, the internal proportion is determined according to the number of duplicates of the anonymous terminal in the fine grid; when user-level association cannot be performed, the internal proportion is determined according to the number of valid MR records, and the statistical caliber is noted in the output; when the actual data cannot identify the same anonymous terminal across cells, the data is deduplicated separately for each cell, and the output is marked as the base station contribution heat index caliber.

3. The method according to claim 1, characterized in that, When there are no valid MR location prediction results within the coverage area of ​​a base station, fine grid allocation is not performed, and all base station-level terminal equivalents of that base station are retained in the coarse grid of the corresponding coarsest grid level.

4. The method according to claim 1, characterized in that, In step S104, the sample size threshold also satisfies θ l =θ L ×2 (L-l) Where L is the level number of the S2 fine mesh level, θ L The sample size threshold is the S2 fine mesh level. The sample size threshold increases by a factor of 2 based on the side length ratio of adjacent levels, rather than by a factor of 4 based on the area ratio of adjacent levels. This ensures that even if each of the four sub-grids does not meet the sample size threshold of its level, the total sample size may still be no less than the sample size threshold of the parent grid at the next higher level.

5. The method according to claim 4, characterized in that, The S2 fine mesh level is Level 17, and the at least two S2 coarse mesh levels, from finest to coarsest, are Level 16, Level 15, and Level 14; θ is taken as... 17 =3、θ 16 =6、θ 15 =12、θ 14 =24; the statistical window length is 5 minutes.

6. The method according to claim 1, characterized in that, In step S105, the remaining terminal equivalent is presented only in the form of coarse grid retention, and the terminal equivalent value of fine grid level is not output for fine grid that lacks MR position prediction basis. In the output record, the granularity of the presentation of this part of the terminal equivalent is indicated by the output grid level and the statistical caliber. The terminal equivalent value of the fine grid represents the share that can be confirmed with the support of location evidence. The difference between the fine grid and the complete flow of people in the fine grid is included in the retention of the coarse grid to which it belongs, and is indicated by the output grid level and the statistical caliber.

7. The method according to claim 1, characterized in that, In step S102, network measurement report records that lack the serving cell, primary serving cell measurement value, or other necessary fields required by the location model are not included in the location prediction. When the predicted location obtained using the location model exceeds the coverage area of ​​the corresponding base station, the record is marked as abnormal, not included in the calculation of the spatial coverage ratio in step S103, and not counted in the number of valid MR records of the corresponding fine grid.

8. A system for generating heatmaps of pedestrian flow based on mobile communication data, characterized in that, include: The data access module is used to receive and clean mobility management signaling data, network measurement report data, minimized drive test data, and base station engineering parameters. The MDT sample construction module is used to select the minimum drive test data of the target area within the training time range, filter samples with valid location labels and complete wireless measurement fields that are shared with the network measurement report data, and form training samples. The location model training and prediction module is used to train a location model with the wireless measurement features of the training samples as input and the location labels of the training samples as output, and to use the location model to predict the location recorded in the network measurement report. The MME terminal equivalent calculation module is used to perform deduplication statistics on anonymous terminal identifiers according to the statistical window and base station to obtain the base station-level terminal equivalent. The S2 spatial grid module is used to organize thermal data according to the S2 fine grid level and at least two S2 coarse grid levels above it. The S2 fine grid level and the at least two S2 coarse grid levels form a grid level sequence arranged from fine to coarse. In two adjacent grid levels, a grid of the coarser level contains four grids of the finer level, and the typical side length of the coarser level unit is twice the typical side length of the finer level unit. It also generates a set of fine grids within the coverage area of ​​each base station. The MR fine grid distribution module is used to map network measurement report records with effective MR location prediction results to fine grids, and to calculate the spatial coverage ratio of each base station and the internal proportion of each effective fine grid. The adaptive granularity output module is used to progressively determine the grid levels in the grid hierarchy sequence from finest to coarsest, except for the coarsest level. It rolls up the sample size of the fine grids aggregated by grids whose sample size does not meet the sample size threshold of the current level to the parent grid of the next higher level for merging and statistics. It determines the terminal equivalent carried by each level output grid by summing the actual terminal equivalent calculated by the aggregated fine grids according to the spatial coverage ratio and the internal proportion. The sample size threshold is determined by taking the same value for the number of samples per unit side length in each grid level. The terminal equivalent fusion calculation module is used to calculate the terminal equivalent contribution of each fine grid according to the spatial coverage ratio and the internal proportion, based on the base station-level terminal equivalent as the total benchmark. The remaining terminal equivalent not allocated to the fine grid is included in the coarse grid retention of the corresponding level according to the level of the ancestor grid of the fine grid that lacks MR location prediction basis. The remaining terminal equivalent that does not belong to any grid output in the previous level is retained in the coarsest grid level. The remaining terminal equivalent is not evenly distributed according to the number or grid area of ​​the fine grid that lacks MR location prediction basis, nor is it extrapolated according to the measured terminal equivalent density of the fine grid that has MR location prediction basis. The module makes the sum of the terminal equivalent output of each level and the sum of the coarse grid retention of each level equal to the base station-level terminal equivalent. Specifically, the output of the data access module is connected to the MDT sample construction module, the MME terminal equivalent calculation module, and the MR fine-grid distribution module, respectively; the output of the MDT sample construction module is connected to the location model training and prediction module; the output of the location model training and prediction module is connected to the MR fine-grid distribution module; the output of the S2 spatial grid module is connected to the MR fine-grid distribution module and the adaptive granularity output module, respectively; and the output of the MR fine-grid distribution module is connected to the adaptive granularity output module. The output terminals of the MME terminal equivalent calculation module, the MR fine mesh distribution module, and the adaptive granularity output module are respectively connected to the terminal equivalent fusion calculation module.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.